Small changes
This commit is contained in:
+7
-6
@@ -49,13 +49,10 @@ 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
|
||||
chroot $CHIBRAX_MOUNT_POINT /sbin/ldconfig -p
|
||||
chroot $CHIBRAX_MOUNT_POINT /usr/sbin/grub-install --target=i386-pc ${LOOP_ROOT} --modules=part_msdos
|
||||
chroot $CHIBRAX_MOUNT_POINT /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
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)
|
||||
|
||||
@@ -64,6 +61,10 @@ echo " set root='hd0,msdos1'" >> $CHIBR
|
||||
echo " linux /boot/vmlinuz rootfstype=ext4 root=/dev/sda1 rw quiet" >> $CHIBRAX_MOUNT_POINT/boot/grub/grub.cfg
|
||||
echo "}" >> $CHIBRAX_MOUNT_POINT/boot/grub/grub.cfg
|
||||
|
||||
umount $CHIBRAX_MOUNT_POINT/dev -l
|
||||
umount $CHIBRAX_MOUNT_POINT/proc -l
|
||||
umount $CHIBRAX_MOUNT_POINT/sys -l
|
||||
umount $CHIBRAX_MOUNT_POINT/tmp -l
|
||||
umount $CHIBRAX_MOUNT_POINT
|
||||
losetup -d $LOOP_ROOT
|
||||
losetup -d $LOOP
|
||||
|
||||
Reference in New Issue
Block a user