Bug 1262621
Summary: | CoreOS image: EXT4-fs (sda3): couldn't mount RDWR because of unsupported optional features (ff000000) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED CANTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | darius.clark, esandeen, ptoscano, virt-bugs |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1262491 | Environment: | |
Last Closed: | 2015-09-13 18:10:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1262491 | ||
Bug Blocks: |
Description
Richard W.M. Jones
2015-09-13 15:47:24 UTC
This was solved by Eric Sandeen. His comment follows: My best guess is that they're using something similar to the hack around line 458 of: https://chromium.googlesource.com/chromiumos/platform/crosutils/+/ea621903e927ac f77889bcda4fa71636f4af7158/common.sh # These two helpers clobber the ro compat value in our root filesystem. disable_rw_mount() { local rootfs="$1" local offset="${2-0}" # in bytes local ro_compat_offset=$((0x464 + 3)) # Set 'highest' byte printf '\377' | sudo dd of="$rootfs" seek=$((offset + ro_compat_offset)) \ conv=notrunc count=1 bs=1 } There's a new flag upstream that would serve this purpose better: commit 2cb5cc8b09c939c77826635956c35995b15c9331 Author: Darrick J. Wong <darrick.wong> Date: Thu Feb 12 22:31:21 2015 -0500 ext4: support read-only images Add a rocompat feature, "readonly" to mark a FS image as read-only. The feature prevents the kernel and e2fsprogs from changing the image; the flag can be toggled by tune2fs. The link in the previous comment was split. It should be: https://chromium.googlesource.com/chromiumos/platform/crosutils/+/ea621903e927acf77889bcda4fa71636f4af7158/common.sh |