schm1d / AwesomeArchLinux

A collection of my shell scripts with hardened Arch Linux configuration, security tweaks and more.
MIT License
16 stars 4 forks source link

GRUB reporting unknown file system #2

Open ghost opened 9 months ago

ghost commented 9 months ago

I am impressed by how thorough this secure installation is thus making it actually secure, but even with my tinkering I could not make it work.

The $DISK partitions could not be found at first, but I simply fixed that by adding an additional ‘p’ to every instance of $DISK “1/2/3” in archinstall.sh and chroot.sh as for me when the partitions are created, they are formatted as “p1/p2/p3”.

But now, grub-install refuses to install as every file system is unknown to it. I’ve tried commenting out the fstab mounting options, uncommenting the os prober in GRUB’s configuration file, running fsck, creating my own partitions with fdisk, generating a new grub.cfg, fstab, and mkinitcpio.conf.

I suppose I could just use systemd, but my only experience with Linux has been this one and I struggle with that one :)

schm1d commented 8 months ago

Can you post a screenshot of the error?

ghost commented 8 months ago

There are still two disk partition labels to fix in archinstall.sh, and one in chroot.sh. Since I do not have the indexes, use a search function.

After quickly fixing the git clone from the above, I ran it as instructed on a fresh, newly-updated live Arch Installation device.

Here are two “screenshots” you can take a look at. Keep in mind that even if the EFI partition (nvme0n1p2) is mounted to /mnt/efi and formatted as vfat (as well as having fsck run on it), it will still be read as an unknown file system. Perhaps mounting it to /mnt/boot/efi will fix this. Will keep experimenting. IMG_4653 IMG_4656

schm1d commented 5 months ago

Hi, and sorry for the significantly delayed feedback on this:

The script is trying to install Grub from chroot. I need to change the script to install Grub after exiting the chroot environment.

I will update here as soon I test it. Regards.