Setup hostname for debian/devuan
This commit is contained in:
parent
e4d3062d45
commit
b96c39ccb6
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ echo "deb http://pkgmaster.devuan.org/merged ${suite} main contrib non-free" > $
|
|||
chroot ${dir} apt update
|
||||
chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2
|
||||
|
||||
echo "unconfigured-host" > ${dir}/etc/hostname
|
||||
|
||||
cp ${dir}/boot/vmlinuz-* ${kernel}
|
||||
|
||||
|
@ -67,7 +68,7 @@ ifup "\${dev}"
|
|||
exit 0
|
||||
EOF
|
||||
|
||||
chmod a+rx ${dir}/etc/rc.local"
|
||||
chmod a+rx "${dir}/etc/rc.local"
|
||||
|
||||
# ensure there is /init in the initramfs -> otherwise there is a kernel panic
|
||||
# reason: initramfs is designed to be PRE regular os, so /init usually hands over to /sbin/init
|
||||
|
|
Loading…
Reference in a new issue