[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: How to change mount options of root device?
From:       Daniel Spannbauer <ds () marco ! de>
Date:       2023-06-01 13:51:58
Message-ID: a9a2b947-92b4-dc5a-debb-4704b73a4b34 () marco ! de
[Download RAW message or body]



> Yes, if the option cannot be changed on remount you need to pass it to
> initrd. By default dracut is using current options from
> /proc/self/mountinfo and stores in initrd which is why changing
> /etc/fstab and running mkinitrd has no effect. Arguably it is not the
> best default and violates principle of the least surprise You can
>
> a) boot using rootflags=... kernel option and then run mkinitrd to
> store current options in initrd
> b) run directly "dracut --fstab ..." to regenerate initrd so it (see
> "man dracut" for full list of options). "dracut --fstab -f" should
> recreate initrd for the currently running kernel.


Thanks for the explanation. I found an entr in /etc/default/grub with 
"rootflags=" which seems to cause this confusion :)


Regards


Daniel


-- 
Daniel Spannbauer                             Systemadministration
marco Systemanalyse und Entwicklung GmbH      Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen         Mobil +49 171 4033220
https://www.marco.de                          Email ds@marco.de
Geschäftsführer Martin Reuter, Torsten Lukas  HRB 171775 Amtsgericht München
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic