Bug 56071 - mkinitrd should pick up the options field from /etc/fstab
mkinitrd should pick up the options field from /etc/fstab
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Matt Wilson
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-11-12 10:05 EST by Chris Adams
Modified: 2007-04-18 12:38 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-05-16 08:05:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to make mkinitrd recognise and honour options for root fs in fstab (816 bytes, patch)
2002-05-16 07:59 EDT, Martijn
no flags Details | Diff

  None (edit)
Description Chris Adams 2001-11-12 10:05:58 EST
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
example.
Comment 1 William Hester 2002-01-28 18:19:01 EST
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.
Comment 2 Chris Adams 2002-01-28 21:39:45 EST
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.
Comment 3 Martijn 2002-05-16 07:59:32 EDT
Created attachment 57564 [details]
patch to make mkinitrd recognise and honour options for root fs in fstab
Comment 4 Martijn 2002-05-16 08:05:19 EDT
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 
in fstab.
Comment 5 Erik Troan 2002-05-21 17:08:55 EDT
Patch wouldn't work (nash didn't support mount options!), but the idea is
now implemented in mkinitrd-3.3.11
Comment 6 Martijn 2002-06-04 04:49:34 EDT
I can confirm that this works with mkinitrd-3.4.2-1 . Thanks!
Comment 7 John Newbigin 2002-10-16 06:07:04 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.