Adding compilation for liblzma and grub

This commit is contained in:
Marc
2021-12-02 16:28:42 +01:00
parent fbdabd66a5
commit 0c039501db
9 changed files with 74 additions and 22 deletions
+10 -10
View File
@@ -42,20 +42,20 @@ cp rootfs/* $CHIBRAX_MOUNT_POINT -r
echo "done"
echo "installing grub"
mount --rbind /dev /mnt/mychroot/dev
mount --make-rslave /mnt/mychroot/dev
mount -t proc /proc /mnt/mychroot/proc
mount --rbind /sys /mnt/mychroot/sys
mount --make-rslave /mnt/mychroot/sys
mount --rbind /tmp /mnt/mychroot/tmp
mount --rbind /dev $CHIBRAX_MOUNT_POINT/dev
mount --make-rslave $CHIBRAX_MOUNT_POINT/dev
mount -t proc /proc $CHIBRAX_MOUNT_POINT/proc
mount --rbind /sys $CHIBRAX_MOUNT_POINT/sys
mount --make-rslave $CHIBRAX_MOUNT_POINT/sys
mount --rbind /tmp $CHIBRAX_MOUNT_POINT/tmp
chroot $CHIBRAX_MOUNT_POINT grub-install --target=i386-pc ${LOOP_ROOT} --modules=part_msdos
chroot $CHIBRAX_MOUNT_POINT grub-mkconfig -o /boot/grub/grub.cfg
umount /mnt/mychroot/dev
umount /mnt/mychroot/proc
umount /mnt/mychroot/sys
umount /mnt/mychroot/tmp
umount $CHIBRAX_MOUNT_POINT/dev
umount $CHIBRAX_MOUNT_POINT/proc
umount $CHIBRAX_MOUNT_POINT/sys
umount $CHIBRAX_MOUNT_POINT/tmp
PARTUUID=$(lsblk $LOOP --fs | awk '{print $4}' | grep -v LABEL)