UPDATE: The solution is in this post, i have removed the bug from the setup you can read in this post.
I have installed Linux Artix on my Lenovo ThinkPad T520. I have used a mix of 3 Tutorials:
https://www.rohlix.eu/post/artix-linux-full-disk-encryption-with-uefi/
And a few informations from there:
https://wiki.artixlinux.org/Main/InstallationWithFullDiskEncryption
https://pastebin.com/z406J0RD
Why i used a few tutorials? Because i don't want to encrypt GRUB2, too, so there is my partition table:sda1 /boot/efi vfat ESP Partition | sda2 /boot ext2 Here are my kernels | sda3 LUKS Volume encrypted "volRoot" and "volSwap" |
But when i boot, GRUB2 appears and i can choose "Linux Artix". Then, after a few seconds that error appears:ERROR: device 'UUID=11a020f6-...' not found. Skipping fsck.
mount: /new_root:can't find UUID=11a020f6-...
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off.
Here is my "/etc/mkinitcpio.conf":MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev block autodetect modconf encrypt keyboard keymap lvm2 resume filesystems fsck)
And my "/etc/default/grub":GRUB_DEFAULT=0
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR="Linux Artix"
GRUB_CMDLINE_LINUX_DEFAULT="crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 splash"
GRUB_CMDLINE_LINUX=""
GRUB_DEVICE=/dev/ram0
GRUB_PRELOAD_MODULES="part_gpt part_msdos luks lvm lvm2 cryptodisk"
GRUB_ENABLE_CRYPTODISK=y
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
The commands to install both were:pacman -S lvm2 cryptsetup linux mkinitcpio grub
mkinitcpio -p linux
grub-install --modules="linux crypto search_fs_uuid luks lvm" --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Linux Artix" --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
The mkinitcpio got a weird output:==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.10.16-artix1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: n5pf
==> WARNING: Possibly missing firmware for module: cxgb4
==> WARNING: Possibly missing firmware for module: qat_c3xxx
==> WARNING: Possibly missing firmware for module: qat_dh895xcc
==> WARNING: Possibly missing firmware for module: qat_c62x
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [lvm2]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.10.16-artix1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: isci
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: cxgb3
==> WARNING: Possibly missing firmware for module: cxgb4
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: advansys
==> WARNING: Possibly missing firmware for module: csiostor
==> WARNING: Possibly missing firmware for module: xhci_pci
==> WARNING: Possibly missing firmware for module: ums_eneub6250
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: n5pf
==> WARNING: Possibly missing firmware for module: qat_c3xxx
==> WARNING: Possibly missing firmware for module: qat_dh895xcc
==> WARNING: Possibly missing firmware for module: qat_c62x
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [lvm2]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
And i also install and add a lot of stuff into the rc-loader:rc-update add device-mapper boot
rc-update add lvm boot
rc-update add dmcrypt boot
rc-update add dbus default
rc-update add elogind boot
rc-update add ntpd default
rc-update add acpid default
rc-update add syslog-ng default
An "ls -lha1 /boot/" (the /dev/sda2 partition) shows my kernel:drwxr-xr-x 6 root root 4.0K Feb 15 23:05 .
drwxr-xr-x 17 root root 4.0K Feb 15 22:07 ..
drwxr-xr-x 4 root root 16K Jan 1 1970 efi
drwxr-xr-x 7 root root 4.0K Feb 17 12:24 grub
drwx------ 2 root root 16K Feb 15 18:31 lost+found
drwxr-xr-x 2 root root 4.0K Nov 30 01:28 memtest86+
-rw------- 1 root root 37M Feb 16 22:09 initramfs-linux-fallback.img
-rw------- 1 root root 19M Feb 16 22:08 initramfs-linux.img
-rw-r--r-- 1 root root 9.0M Feb 15 22:36 vmlinuz-linux
And there is the "/boot/grub/grub.cfg":# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
insmod luks
insmod lvm
insmod lvm2
insmod cryptodisk
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_serpent
insmod gcry_serpent
insmod gcry_whirlpool
insmod lvm
insmod ext2
cryptomount -u 28197c4717804978bbce8c1223978774
set root='lvmid/T3omzk-9K1K-viYI-gqg8-cAjN-9koc-S7eLz3/iD8bRT-ERfH-XeuE-kmXv-5uxq-62tu-6cx0ea'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/T3omzk-9K1K-viYI-gqg8-cAjN-9koc-S7eLz3/iD8bRT-ERfH-XeuE-kmXv-5uxq-62tu-6cx0ea' 11a020f6-9765-478f-818d-904fa82e918f
else
search --no-floppy --fs-uuid --set=root 11a020f6-9765-478f-818d-904fa82e918f
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1920x1080
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=15
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=15
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Linux Artix Linux' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Linux Artix Linux' $menuentry_id_option 'gnulinux-advanced-/dev/ram0' {
menuentry 'Linux Artix Linux, with Linux linux' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Linux Artix Linux, with Linux linux (fallback initramfs)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-/dev/ram0' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
else
search --no-floppy --fs-uuid --set=root 560bb75e-3b5e-4bc7-a5e2-61ceee78d570
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=11a020f6-9765-478f-818d-904fa82e918f rw crypt_root=/dev/sda3 real_root=/dev/mapper/encryptedLinux-volRoot resume=/dev/mapper/encryptedLinux-volSwap loglevel=3 quiet splash
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
]I am out of ideas . I have searched a lot, the most was errors because of systemd ... haha. Anyone got an idea or maybe can give me a hint?