Adding compilation for liblzma and grub
This commit is contained in:
+10
-10
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user