testing more

This commit is contained in:
Jeffrey Paul 2019-10-04 06:46:23 -07:00
parent 0c72b2c372
commit 5273235554
14 changed files with 8 additions and 7 deletions

View File

@ -32,12 +32,12 @@ function doinstall {
fi fi
# copy root overlay into FAT /boot partition # copy root overlay into FAT /boot partition
rsync -avP "$THISDIR/root" "$TARGET/root" rsync -avP "$THISDIR/root.overlay/" "$TARGET/root.overlay/"
# set hostname in overlay: # set hostname in overlay:
mkdir -p $TARGET/root/etc mkdir -p $TARGET/root.overlay/etc
echo "$NEWHOSTNAME" > "$TARGET/root/etc/hostname" echo "$NEWHOSTNAME" > "$TARGET/root.overlay/etc/hostname"
cat >> $TARGET/root/etc/hosts <<EOF cat >> $TARGET/root.overlay/etc/hosts <<EOF
127.0.0.1 localhost 127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback ::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes ff02::1 ip6-allnodes

View File

@ -1,10 +1,11 @@
#!/bin/sh # can't assume bash yet #!/bin/sh # can't assume bash yet
if [ ! -d /boot/root ]; then if [ ! -d /boot/root.overlay ]; then
logger -s -t rc.local.txt cant find root overlay in /boot logger -s -t rc.local.txt cant find root overlay in /boot
else else
rsync -avP /boot/root/ / && \ rsync -avP /boot/root.overlay/ /
rm -rf /boot/root /boot/rc.local.txt # we only need to run once rm -rf /boot/rc.local.txt # we only need to run once
#FIXME also remove /boot/root.overlay dir when working
fi fi
reboot reboot