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
# 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:
mkdir -p $TARGET/root/etc
echo "$NEWHOSTNAME" > "$TARGET/root/etc/hostname"
cat >> $TARGET/root/etc/hosts <<EOF
mkdir -p $TARGET/root.overlay/etc
echo "$NEWHOSTNAME" > "$TARGET/root.overlay/etc/hostname"
cat >> $TARGET/root.overlay/etc/hosts <<EOF
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes

View File

@ -1,10 +1,11 @@
#!/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
else
rsync -avP /boot/root/ / && \
rm -rf /boot/root /boot/rc.local.txt # we only need to run once
rsync -avP /boot/root.overlay/ /
rm -rf /boot/rc.local.txt # we only need to run once
#FIXME also remove /boot/root.overlay dir when working
fi
reboot