testing more
This commit is contained in:
1 parent
0c72b2c372
commit
5273235554
14 files changed
+8
-7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user