Prevent extlinux.conf overwrites

This commit is contained in:
Disassembler 2019-03-19 21:46:39 +01:00
parent 91b1cfb08c
commit 8ddbc72644
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

1
_vm.sh
View File

@ -78,6 +78,7 @@ mkinitfs -c /mnt/etc/mkinitfs/mkinitfs.conf -b /mnt $(ls /mnt/lib/modules)
# Update extlinux (ignore the errors) # Update extlinux (ignore the errors)
sed -i 's/rootfstype=ext4/rootfstype=ext4 cryptroot=\/dev\/sda2 cryptdm=system/' /mnt/etc/update-extlinux.conf sed -i 's/rootfstype=ext4/rootfstype=ext4 cryptroot=\/dev\/sda2 cryptdm=system/' /mnt/etc/update-extlinux.conf
chroot /mnt update-extlinux chroot /mnt update-extlinux
sed -i 's/overwrite=1/overwrite=0/' /mnt/etc/update-extlinux.conf
# Set time zone # Set time zone
chroot /mnt setup-timezone -z Europe/Prague chroot /mnt setup-timezone -z Europe/Prague