Red Hat Bugzilla – Bug 56071
mkinitrd should pick up the options field from /etc/fstab
Last modified: 2007-04-18 12:38:13 EDT
It would be nice if mkinitrd could pick up the options field from
/etc/fstab. This would allow easy setting of journal type for ext3 for
After considering bug #55495 ( http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=55495 ) ,
it seems that a root ext3fs will always be mounted with data=ordered and cannot currently be changed with a remount.
This is rather anoying for people who would rather see it mounted data=journal or data=writeback.
I know that the journaling mode can't be changed with a -remount option.
However, the root filesystem is mounted from an initial ramdisk (not the
kernel) if it is an ext3 filesystem. If the scripts that build the
initrd looked in /etc/fstab, they could pick up the journaling mode and
pass those options to the mount command used to mount the root
filesystem. That way, changing the journaling mode of the root
filesystem would require editing /etc/fstab and re-running mkinitrd.
Created attachment 57564 [details]
patch to make mkinitrd recognise and honour options for root fs in fstab
This patch is against mkinitrd-3.2.6-1 . It changes mkinitrd to include a -o
argument for the mount statement if there are options for the root filesystem
Patch wouldn't work (nash didn't support mount options!), but the idea is
now implemented in mkinitrd-3.3.11
I can confirm that this works with mkinitrd-3.4.2-1 . Thanks!
Where can I find a fixed version of mkinitrd which works with RedHat 7.2?
mkinitrd-3.4.2-1 appears to be gone and mkinitrd-3.4.28-1 which appears to be
the latest I can't get to work with RH7.2.