Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449186 - genkernel initramfs should strip iversion mount option
Summary: genkernel initramfs should strip iversion mount option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 14:30 UTC by Sven Vermeulen (RETIRED)
Modified: 2016-05-16 06:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2012-12-29 14:30:10 UTC
Currently, the genkernel initramfs only strips the (no)auto parameters from the mount options it gathered from fstab. When using the iversion mount option for /usr, this gets passed and causes the initramfs to refuse to mount the /usr file system.

In the dmesg output, I get
"""
[    3.998118] EXT4-fs (dm-3): Unrecognized mount option "iversion" or missing value
"""

Editing /usr/share/genkernel/defaults/initrd.scripts' strip_mount_options to become the following suffices: /usr gets mounted (read-only at first) and after the remount, it is mounted with iversion.

"""
strip_mount_options()
{
        sed -r 's/(,|^)(no)?auto(,|$)/,/g' | \
        sed -r 's/(,|^)iversion(,|$)/,/g'
}
"""

Reproducible: Always
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-05-16 06:55:43 UTC
[master 4b467f0] defaults/initrd.scripts: bug #449186, strip iversion from mountopts.
 1 file changed, 3 insertions(+), 1 deletion(-)