Debian Codegraph @

hacking/preos-sh/init

raw
1 #!/bin/sh
2
3 for pkg in \
4 file \
5 linux-image-amd64 \
6 lsb-release \
7 openssh-server curl \
8 pxelinux syslinux-common grub2 \
9 gdisk util-linux lvm2 mdadm \
10 btrfs-tools e2fsprogs jfsutils reiser4progs xfsprogs; do
11 __package $pkg --state present
12 done
13
14 # initramfs requires /init
15 __link /init --source /sbin/init --type symbolic
16
17 __file /etc/network/interfaces --source - --mode 0644 << eof
18 # The loopback network interface
19 auto lo
20 iface lo inet loopback
21
22 # The primary network interface
23 auto eth0
24 allow-hotplug eth0
25 iface eth0 inet dhcp
26 eof
27
28 # Steven found this out - coyping it 1:1
29 # fix the bloody 'stdin: is not a tty' problem
30 __line /root/.profile --line 'mesg n' --state absent
31
32 __hostname --name preos