Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Fixes issue where LUKS encrypted XFS root will not boot#803

Merged
condor2 merged 2 commits intoAnarchyLinux:masterfrom
UNIcodeX:master
Jul 5, 2019
Merged

Fixes issue where LUKS encrypted XFS root will not boot#803
condor2 merged 2 commits intoAnarchyLinux:masterfrom
UNIcodeX:master

Conversation

@UNIcodeX
Copy link
Copy Markdown
Contributor

Issue is fixed by adding "xfs" to the "MODULES" list in
/etc/mkinitcpio.conf

See the following link for XFS and LUKS:
https://bbs.archlinux.org/viewtopic.php?pid=1748083#p1748083s://bbs.archlinux.org/viewtopic.php?pid=1748083#p1748083

NOTE:
I've changed the sed line from:
sed -i '/MODULES=/ s/.$/ xfs"/;s/" /"/' "$ARCH"/etc/mkinitcpio.conf

to:
sed -i '/MODULES=/ s/.$/ xfs )/;s/" /"/' "$ARCH"/etc/mkinitcpio.conf

The effect of the first example is:

...
#     MODULES=(piix ide_disk reiserfs xfs"
MODULES=( xfs"
...

and the effect of the changed line is:

...
#     MODULES=(piix ide_disk reiserfs xfs )
MODULES=( xfs )
...

Which brings up the points:
A) Am I missing something?
B) If not, then should all sed lines involving the MODULES= line in mkinitcpio.conf be changed to add a closing parentheses, rather than a space and a double quote?

Issue is fixed by adding "xfs" to the "MODULES" list in
/etc/mkinitcpio.conf

See the following link for XFS and LUKS:
https://bbs.archlinux.org/viewtopic.php?pid=1748083#p1748083s://bbs.archlinux.org/viewtopic.php?pid=1748083#p1748083
@UNIcodeX
Copy link
Copy Markdown
Contributor Author

UNIcodeX commented Jun 29, 2019

Initial iso build and test install into a virtual box VM, using LUKS with xfs and quick install option, booted.

However, subsequent testing with LUKS and xfs, under the manual install, did not boot properly, due to not knowing what FS type it was (that is to say... The same issue).

Further testing required.

UPDATE: On the second test, I had chosen to update the installer, which downloaded the non-changed sources from the git repo, thus invalidating the changed ISO which was created. The attached screenshot shows that the MODULES= line is is changed to MODULES=( xfs ). Booting into OS after completion of installation to a LUKS encrypted XFS root is confirmed to be working.

PostInstall2

Changes all sed lines for MODULES= to change only the line where
MODULES= is at the start of the line.
Changes nvidia drm, f2fs, and nvme sed MODULES= line modification to behave like
the recently modified xfs sed MODULES= line modification, such that it
will append to whatever is already in the modules list.
@condor2 condor2 merged commit d3752a3 into AnarchyLinux:master Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants