Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458276 - genkernel mount /usr fails because of iversion mount option
Summary: genkernel mount /usr fails because of iversion mount option
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-19 11:52 UTC by Sven Vermeulen (RETIRED)
Modified: 2015-06-07 09:48 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 2013-02-19 11:52:42 UTC
Within Hardened Integrity, we need to mount all file systems with the iversion mount option. On a regular boot (without initramfs), this works fine. When using genkernel's initramfs, the mount of /usr fails:

>> Mounting /dev/mapper/vg-usr as /usr: mount -t ext4 -o defaults,rw,noatime,data=journal,iversion,ro /dev/mapper/vg-usr /usr
mount: mounting /dev/mapper/vg-usr on /newroot/usr failed: Invalid argument

In the dmesg output, it mentions:

EXT4-fs (dm-3): Unrecognized mount option "iversion" or missing value

The problem is most likely the differences in i_version and iversion. In certain cases, i_version needs to be provided, and in others iversion. 

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-02-19 12:32:22 UTC
Seems that busybox mount doesn't support iversion? There's some chatter on this on our mailinglist.

I've added iversion in the strip_mount_options function in genkernel's defaults/initrd.scripts file, and added a "mount -o remount,iversion /usr" in the init bootup.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2015-06-07 09:48:02 UTC
Reassigning back to hardened until I get more time to devote on this