You are not logged in.
Pages: 1
I'm trying to install the Zen kernel but pacman doesn't seem to recognise it. I've never done this before so I suspect I'm making a schoolboy error somewhere. My bootloader is EFISTUB if that matters.
# uname -r
5.6.11-arch1-1
# sudo pacman -S linux-zen linux-zen-headers
.......... [snip] ..........
# ls -l /usr/lib/modules
total 12K
drwxr-xr-x 5 root root 4.0K May 11 18:17 5.6.11-arch1-1
drwxr-xr-x 4 root root 4.0K May 11 19:04 5.6.11-zen1-1-zen
drwxr-xr-x 3 root root 4.0K Apr 9 13:10 5.6.3-arch1-1
# sudo mkinitcpio -g /boot/initramfs-linux.img -k 5.6.11-zen1-1-zen
==> Starting build: 5.6.11-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
-> Running build hook: [mdadm_udev]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
# sudo pacman -S linux
warning: linux-5.6.11.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-5.6.11.arch1-1
Total Installed Size: 74.60 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
.......... [snip] ..........Offline
You are doing strange stuff. What's up with that "mkinitcpio" command line you are running? You shouldn't have to do this manually, just installing the linux-zen package should run mkinitcpio automatically. It should be happening in that part where you have you ".... snip ...." text.
That mkinitcpio command line you are using is also overwriting the initramfs for the "linux" package. The one for the "linux-zen" package has a default name "initramfs-linux-zen.img". What are you trying to do there? I don't get it.
After you've installed both linux-zen and linux packages, your /boot location should contain all of these files here:
/boot/vmlinuz-linux
/boot/vmlinuz-linux-zen
/boot/initramfs-linux.img
/boot/initramfs-linux-zen.img
/boot/initramfs-linux-fallback.img
/boot/initramfs-linux-zen-fallback.imgYou can then try booting using either the "linux" or the "linux-zen" kernels and initramfs.
Last edited by Ropid (2020-05-11 20:26:10)
Offline
Don't truncate/obfuscate output, paste the entire log: https://bbs.archlinux.org/viewtopic.php?id=57855
Please paste your pacman.conf and the output of `pacman -Q linux-zen linux`
Offline
Thanks for the pointers Ropid. I've managed to get a bit further with this. I set my boot order using efibootmgr (had to re-learn how to use it), and it reports that I'm currently running the Zen kernel (I think) but 'uname -r' still reports 5.6.11-arch1-1 so is this normal and am I running Zen or not? Does uname not differentiate between a Zen kernel and a normal one?
# ls -l /boot
total 95M
-rwxr-xr-x 1 root root 31M May 11 20:58 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 9.5M May 11 20:58 initramfs-linux.img
-rwxr-xr-x 1 root root 32M May 11 21:27 initramfs-linux-zen-fallback.img
-rwxr-xr-x 1 root root 9.5M May 11 21:27 initramfs-linux-zen.img
-rwxr-xr-x 1 root root 6.4M May 11 20:58 vmlinuz-linux
-rwxr-xr-x 1 root root 6.9M May 11 21:27 vmlinuz-linux-zen
# efibootmgr --verbose
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,001B,001C,0013,0014,0015,001A,001D,0001,0002,0003
Boot0000* ArchZen HD(1,GPT,db56238c-3a9a-40d9-9f26-83542b1c5df8,0x800,0x113000)/File(\vmlinuz-linux)r.o.o.t.=.P.A.R.T.U.U.I.D.=.1.0.0.0.7.8.3.8.-.9.3.2.2.-.4.d.8.c.-.b.4.6.9.-.f.c.1.c.3.2.4.6.f.f.4.4. .r.w. .i.n.i.t.r.d.=.\.i.n.i.t.r.a.m.f.s.-.l.i.n.u.x.-.z.e.n...i.m.g.
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* UEFI:Removable Device BBS(130,,0x0)
Boot0003* UEFI:Network Device BBS(131,,0x0)
Boot0013* SSD PLUS 480GB BBS(HD,,0x0)..BO
Boot0014* ST2000DM005-2CW102 BBS(HD,,0x0)..BO
Boot0015* Samsung SSD 970 EVO Plus 1TB BBS(HD,,0x0)..BO
Boot001A* Samsung SSD 970 EVO Plus 1TB BBS(HD,,0x0)..BO
Boot001B* UEFI: USB Flash Memory1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/USB(2,0)/CDROM(1,0xa4,0x14475c)..BO
Boot001C* UEFI: USB Flash Memory1.00, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/USB(2,0)/HD(2,MBR,0x63af2e9,0xa4,0x20000)..BO
Boot001D* USB Flash Memory1.00 BBS(HD,,0x0)..BO
# uname -r
5.6.11-arch1-1Last edited by JimDeadlock (2020-05-11 23:08:46)
Offline
Wrong image:
Boot0000* ArchZen HD(1,GPT,db56238c-3a9a-40d9-9f26-83542b1c5df8,0x800,0x113000)/File(\vmlinuz-linux)
Last edited by jasonwryan (2020-05-11 23:11:01)
Offline
Boot0000* ArchZen HD(1,GPT,db56238c-3a9a-40d9-9f26-83542b1c5df8,0x800,0x113000)/File(\vmlinuz-linux)r.o.o.t.=.P.A.R.T.U.U.I.D.=.1.0.0.0.7.8.3.8.-.9.3.2.2.-.4.d.8.c.-.b.4.6.9.-.f.c.1.c.3.2.4.6.f.f.4.4. .r.w. .i.n.i.t.r.d.=.\.i.n.i.t.r.a.m.f.s.-.l.i.n.u.x.-.z.e.n...i.m.g.The linux kernel but a linux-zen initrd?
Edit:
Did you manually build linux-zen.img specifying the linux none zen kernel otherwise would expect the kernel to refuse to load the modules.
What is the output of
lsinitcpio /boot/initramfs-linux-zen.img | grep modules.devnameLast edited by loqs (2020-05-11 23:25:39)
Offline
I fixed the initrd image (it was a schoolboy error):
# sudo efibootmgr --disk /dev/nvme1n1 --part 1 --create --label "ArchZen" --loader /vmlinuz-linux-zen --unicode 'root=PARTUUID=10007838-9322-4d8c-b469-fc1c3246ff44 rw initrd=\initramfs-linux-zen.img' --verbose...and rebooted, but still showing a mismatch between efibootmgr and uname:
# efibootmgr --verbose
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,001B,001C,0013,0014,0015,001A,001D,0001,0002,0003
Boot0000* ArchZen HD(1,GPT,db56238c-3a9a-40d9-9f26-83542b1c5df8,0x800,0x113000)/File(\vmlinuz-linux-zen)r.o.o.t.=.P.A.R.T.U.U.I.D.=.1.0.0.0.7.8.3.8.-.9.3.2.2.-.4.d.8.c.-.b.4.6.9.-.f.c.1.c.3.2.4.6.f.f.4.4. .r.w. .i.n.i.t.r.d.=.\.i.n.i.t.r.a.m.f.s.-.l.i.n.u.x.-.z.e.n...i.m.g.
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* UEFI:Removable Device BBS(130,,0x0)
Boot0003* UEFI:Network Device BBS(131,,0x0)
Boot0013* SSD PLUS 480GB BBS(HD,,0x0)..BO
Boot0014* ST2000DM005-2CW102 BBS(HD,,0x0)..BO
Boot0015* Samsung SSD 970 EVO Plus 1TB BBS(HD,,0x0)..BO
Boot001A* Samsung SSD 970 EVO Plus 1TB BBS(HD,,0x0)..BO
Boot001B* UEFI: USB Flash Memory1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/USB(2,0)/CDROM(1,0xa4,0x14475c)..BO
Boot001C* UEFI: USB Flash Memory1.00, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/USB(2,0)/HD(2,MBR,0x63af2e9,0xa4,0x20000)..BO
Boot001D* USB Flash Memory1.00 BBS(HD,,0x0)..BO
# uname -r
5.6.11-arch1-1Edit:
# lsinitcpio /boot/initramfs-linux-zen.img | grep modules.devname
usr/lib/modules/5.6.11-zen1-1-zen/modules.devnameLast edited by JimDeadlock (2020-05-11 23:28:12)
Offline
file /boot/vmlinuz-linux /boot/vmlinuz-linux-zenIf you unmount /boot what is the contents of the unmounted /boot directory?
Offline
# sudo umount /boot
# ls -l /boot
total 47M
-rwxr-xr-x 1 root root 31M Apr 17 07:46 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 9.5M Apr 17 07:46 initramfs-linux.img
-rw-r--r-- 1 root root 6.4M Apr 17 07:46 vmlinuz-linux
# cat /etc/fstab
# /dev/md127p1 LABEL=ArchSys
UUID=8aa5ca90-0e5b-420f-a53c-1789c70e4f32 / ext4 rw,relatime,stripe=256 0 1
# /dev/md127p2 LABEL=ArchHome
UUID=b3808afb-5eba-435f-90aa-f6c0aabcfd0e /home ext4 rw,relatime,stripe=256 0 2
# /dev/nvme1n1p1 LABEL=EFI
UUID=03A3-0196 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2Offline
Should I delete the contents of /boot with it unmounted?
Offline
What is the output of
file /boot/vmlinuz-linux /boot/vmlinuz-linux-zenI would not advise deleting files until the issue is resolved then unneeded files can be removed.
Offline
# file /boot/vmlinuz-linux /boot/vmlinuz-linux-zen
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.6.4-arch1-1 (linux@archlinux) #1 SMP PREEMPT Mon, 13 Apr 2020 12:21:19 +0000, RO-rootFS, swap_dev 0x6, Normal VGA
/boot/vmlinuz-linux-zen: cannot open `/boot/vmlinuz-linux-zen' (No such file or directory)
# sudo mount /dev/nvme1n1p1 /boot
# file /boot/vmlinuz-linux /boot/vmlinuz-linux-zen
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.6.11-arch1-1 (linux@archlinux) #1 SMP PREEMPT Wed, 06 May 2020 17:32:37 +0000, RO-rootFS, swap_dev 0x6, Normal VGA
/boot/vmlinuz-linux-zen: Linux kernel x86 boot executable bzImage, version 5.6.11-zen1-1-zen (linux-zen@archlinux) #1 ZEN SMP PREEMPT Wed, 06 May 2020 17:32:39 +0000, RO-rootFS, swap_dev 0x6, Normal VGAOffline
Pages: 1