diff --git a/debian-devuan-netboot.sh b/debian-devuan-netboot.sh index 5bc2d66..0dd9d97 100755 --- a/debian-devuan-netboot.sh +++ b/debian-devuan-netboot.sh @@ -42,6 +42,9 @@ for key in balazs dominique jinguk nico; do curl -s ${keyurl}/${key}.pub >> ${dir}/root/.ssh/authorized_keys done +# Fix possible permission issue from above +chown -R root:root ${dir}/root/ + ################################################################################ # networking @@ -73,7 +76,7 @@ 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 # in our case, they are just the same -ln -s /sbin/init ${dir}/init +ln -fs /sbin/init ${dir}/init # Finally building the initramfs ( cd ${dir} ; find . | cpio -H newc -o | gzip -9 > ${initramfs} )