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

Commit 18362b8

Browse files
committed
Fixes issue where LUKS encrypted XFS root will not boot
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
1 parent 0ca376b commit 18362b8

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

lib/configure_device.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ fs_select() {
854854
enable_f2fs=true
855855
elif [ "$FS" == "btrfs" ]; then
856856
enable_btrfs=true
857+
elif [ "$FS" == "xfs" ]; then
858+
enable_xfs=true
857859
fi
858860

859861
}

lib/configure_system.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ configure_system() {
7171
echo "$(date -u "+%F %H:%M") : Configure system for f2fs" >> "$log"
7272
fi
7373

74+
if "$enable_xfs" ; then
75+
sed -i '/MODULES=/ s/.$/ xfs )/;s/" /"/' "$ARCH"/etc/mkinitcpio.conf
76+
if ! "$crypted" ; then
77+
arch-chroot "$ARCH" mkinitcpio -p "$kernel" &>/dev/null &
78+
pid=$! pri=1 msg="\n$xfs_config_load \n\n \Z1> \Z2mkinitcpio -p $kernel\Zn" load
79+
fi
80+
echo "$(date -u "+%F %H:%M") : Configure system for xfs" >> "$log"
81+
fi
82+
7483
if (<<<"$BOOT" egrep "nvme.*" &> /dev/null) then
7584
sed -i 's/MODULES="/MODULES="nvme /;s/ "/"/' "$ARCH"/etc/mkinitcpio.conf
7685
if ! "$crypted" ; then

0 commit comments

Comments
 (0)