'grub-install --verbose' on both drives finished without fatal errors although grub-mkimage still uses some modules multiple times:
grub-install: info: grub-mkimage --directory '/usr/lib/grub/i386-pc' --prefix '(cryptouuid/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)/boot/grub' --output '/boot/grub/i386-pc/core.img' --format 'i386-pc' --compression 'auto' --config '/boot/grub/i386-pc/load.cfg' 'btrfs' 'cryptodisk' 'luks' 'gcry_rijndael' 'gcry_rijndael' 'gcry_sha256' 'part_msdos' 'cryptodisk' 'luks' 'gcry_rijndael' 'gcry_rijndael' 'gcry_sha256' 'part_msdos' 'biosdisk' Regards, Opty On Wed, Aug 14, 2024 at 5:56 PM Opty <opt...@gmail.com> wrote: > ...which failed again so just a normal diff: > > 122a123,124 > > local -A insmod > > > 127a130,133 > > if [ "${insmod[$module]}" ]; then > > continue > > fi > > > 133a140,141 > > > > insmod[$module]=1 > 138a147,150 > > if [ "${insmod[$module]}" ]; then > > continue > > fi > > > 139a152,153 > > > > insmod[$module]=1 > 157c171 > < echo "set root='$fs_hint'" > --- > > echo "set root='`head -1 <<< $fs_hint`'" > > Sorry for the noise. > > Regards, > Opty > > On Wed, Aug 14, 2024 at 5:41 PM Opty <opt...@gmail.com> wrote: > > Another attempt with correct newlines: > > > > [...] > > > > On Wed, Aug 14, 2024 at 5:22 PM Opty <opt...@gmail.com> wrote: > > > I need to move on so quick and dirty hacks again: > > > > > > [...] > > > > > > Unfortunately Gmail web UI converts tabs to spaces so beware. > > > > > > On Fri, Aug 9, 2024 at 4:50 PM Opty <opt...@gmail.com> wrote: > > > > Oh right, I probably found the grub.cfg-breaking culprit: > > > > > > > > https://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkconfig_lib.in?h=grub-2.12#n157 > > > > > > > > $fs_hint contains newline when using encrypted BTRFS RAID1.