1
0
Fork 0

Temporary remove chroot after mount

This commit is contained in:
Braiden Vasco 2017-07-03 00:39:43 +00:00
parent e1b37801f1
commit 3727bedf6f

View file

@ -115,12 +115,6 @@ if [ ! -x ${MOUNT_DIR}/usr/bin/qemu-arm-static ]; then
cp /usr/bin/qemu-arm-static ${MOUNT_DIR}/usr/bin/
fi
on_chroot << EOF
apt-get update
apt-get -y dist-upgrade
apt-get clean
EOF
install -m 644 files/resolv.conf ${MOUNT_DIR}/etc/
IMGID="$(fdisk -l "$IMG_FILE" | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"
@ -132,11 +126,6 @@ sed -i "s/BOOTDEV/PARTUUID=$BOOT_PARTUUID/" "$MOUNT_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$MOUNT_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$MOUNT_DIR/boot/cmdline.txt"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
EOF
if [ -d "$MOUNT_DIR/home/$USERNAME/.config" ]; then
chmod 700 "$MOUNT_DIR/home/$USERNAME/.config"
fi