[opensuse-factory] ending up dracut shell after update
I have an opensuse install with encrypted root and home partitions. lvm + luks. afte the update I ended up with a failure at boot, after grub Feb 02 20:28:15 circassia dracut-initqueue[368]: systemd-escape: invalid option -- '1' Feb 02 20:28:15 circassia dracut-initqueue[368]: Failed to start systemd- cryptsetup@luks.service: Unit systemd-cryptsetup@luks.service not found. Feb 02 20:30:21 circassia dracut-initqueue[368]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 02 20:31:22 circassia dracut-initqueue[368]: Warning: Could not boot. Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/mapper/system- root does not exist Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/system/root does not exist Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: Not all disks have been found. Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: You might want to regenerate your initramfs. Feb 02 20:34:42 circassia systemd[1]: Started dracut initqueue hook. and i endup in a shell. luckily enough with some magic I managed to boot but regenerating initrd as suggedsted did not help. cryptsetup luksOpen /dev/<part> cr_lvm lvm vgchange -ay ln -s /dev/mapper/<root> /dev/root exit and then it boots... Alin this happened with both kernel 4.10 from kernel head and 4.9 from Tumbleweed. -- Without Questions there are no Answers! _______________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ _______________________________________
02.02.2017 23:46, Alin M Elena пишет:
I have an opensuse install with encrypted root and home partitions. lvm + luks. afte the update I ended up with a failure at boot, after grub
Feb 02 20:28:15 circassia dracut-initqueue[368]: systemd-escape: invalid option -- '1'
Could be this problem fixed upstream commit c41df7e1db1adc51399ab2c22f251b15eb2065b1 Author: Alexander Tsoy <alexander@tsoy.me> Date: Tue Jan 5 22:11:57 2016 +0300 base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-" crypt/parse-crypt.sh generate initqueue job which always call dev_unit_name() with an argument beginning with "-". This results in the following error: dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087 dracut-initqueue[307]: systemd-escape: invalid option -- 'c'
Feb 02 20:28:15 circassia dracut-initqueue[368]: Failed to start systemd- cryptsetup@luks.service: Unit systemd-cryptsetup@luks.service not found. Feb 02 20:30:21 circassia dracut-initqueue[368]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 02 20:31:22 circassia dracut-initqueue[368]: Warning: Could not boot. Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/mapper/system- root does not exist Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/system/root does not exist Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: Not all disks have been found. Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: You might want to regenerate your initramfs. Feb 02 20:34:42 circassia systemd[1]: Started dracut initqueue hook.
and i endup in a shell. luckily enough with some magic I managed to boot but regenerating initrd as suggedsted did not help.
cryptsetup luksOpen /dev/<part> cr_lvm lvm vgchange -ay ln -s /dev/mapper/<root> /dev/root exit
and then it boots...
Alin
this happened with both kernel 4.10 from kernel head and 4.9 from Tumbleweed.
Hi Andrei, It may be or may be not. I run on the 4.10.0-rc6-2.g18f6269-default and systemd 232 (2.1 rpm) Alin On Friday, 3 February 2017 03:45:08 GMT Andrei Borzenkov wrote:
02.02.2017 23:46, Alin M Elena пишет:
I have an opensuse install with encrypted root and home partitions. lvm + luks. afte the update I ended up with a failure at boot, after grub
Feb 02 20:28:15 circassia dracut-initqueue[368]: systemd-escape: invalid option -- '1'
Could be this problem fixed upstream
commit c41df7e1db1adc51399ab2c22f251b15eb2065b1 Author: Alexander Tsoy <alexander@tsoy.me> Date: Tue Jan 5 22:11:57 2016 +0300
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"
crypt/parse-crypt.sh generate initqueue job which always call dev_unit_name() with an argument beginning with "-". This results in the following error:
dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087 dracut-initqueue[307]: systemd-escape: invalid option -- 'c'
Feb 02 20:28:15 circassia dracut-initqueue[368]: Failed to start systemd- cryptsetup@luks.service: Unit systemd-cryptsetup@luks.service not found. Feb 02 20:30:21 circassia dracut-initqueue[368]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 02 20:31:22 circassia dracut-initqueue[368]: Warning: Could not boot. Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/mapper/system- root does not exist Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/system/root does not exist Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: Not all disks have been found. Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: You might want to regenerate your initramfs. Feb 02 20:34:42 circassia systemd[1]: Started dracut initqueue hook.
and i endup in a shell. luckily enough with some magic I managed to boot but regenerating initrd as suggedsted did not help.
cryptsetup luksOpen /dev/<part> cr_lvm lvm vgchange -ay ln -s /dev/mapper/<root> /dev/root exit
and then it boots...
Alin
this happened with both kernel 4.10 from kernel head and 4.9 from Tumbleweed.
-- Without Questions there are no Answers! _______________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ _______________________________________ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Andrei, applied that patch by hand https://kernel.googlesource.com/pub/scm/boot/dracut/dracut/+/ c41df7e1db1adc51399ab2c22f251b15eb2065b1%5E!/ and reinstalled the kernel after. the error changed to... Feb 04 07:51:37 circassia dracut-cmdline[146]: dracut- dracut-044-20.1 dracut-044-20.1 Feb 04 07:51:37 circassia dracut-cmdline[146]: Using kernel command line parameters: rd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d rd.lvm.lv=system/root root=/dev/mapper/system-root rootfstype=ext4 rootflags=rw,relatime,data=ordered BOOT_IMAGE=/boot/vmlinuz-4.10.0- rc6-2.g18f6269-default root=/dev/mapper/system-root splash=silent quiet showopts Feb 04 07:51:37 circassia systemd[1]: Started Setup Virtual Console. Feb 04 07:51:37 circassia systemd[1]: Started dracut cmdline hook. Feb 04 07:51:37 circassia systemd[1]: Starting dracut pre-udev hook... Feb 04 07:51:37 circassia kernel: device-mapper: uevent: version 1.0.3 Feb 04 07:51:37 circassia kernel: device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com Feb 04 07:51:37 circassia systemd[1]: Started dracut pre-udev hook. Feb 04 07:51:37 circassia systemd[1]: Starting udev Kernel Device Manager... Feb 04 07:51:37 circassia systemd[1]: Started udev Kernel Device Manager. Feb 04 07:51:37 circassia systemd[1]: Starting dracut pre-trigger hook... Feb 04 07:51:37 circassia systemd[1]: Started dracut pre-trigger hook. Feb 04 07:51:37 circassia systemd[1]: Starting udev Coldplug all Devices... Feb 04 07:51:37 circassia systemd[1]: Started udev Coldplug all Devices. Feb 04 07:51:37 circassia systemd[1]: Starting Show Plymouth Boot Screen... Feb 04 07:51:37 circassia systemd[1]: Starting dracut initqueue hook... Feb 04 07:51:37 circassia systemd[1]: Started Show Plymouth Boot Screen. Feb 04 07:51:37 circassia kernel: ACPI: bus type USB registered Feb 04 07:51:37 circassia kernel: usbcore: registered new interface driver usbfs Feb 04 07:51:37 circassia kernel: usbcore: registered new interface driver hub Feb 04 07:51:37 circassia kernel: usbcore: registered new device driver usb Feb 04 07:51:37 circassia kernel: [drm] Initialized Feb 04 07:51:37 circassia systemd[1]: Reached target Encrypted Volumes. Feb 04 07:51:37 circassia systemd[1]: Reached target System Initialization. Feb 04 07:51:37 circassia systemd[1]: Reached target Paths. Feb 04 07:51:37 circassia systemd[1]: Started Forward Password Requests to Plymouth Directory Watch. Feb 04 07:51:37 circassia systemd[1]: Reached target Basic System. Feb 04 07:51:37 circassia kernel: xhci_hcd 0000:00:14.0: xHCI Host Controller Feb 04 07:51:37 circassia kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 Feb 04 07:51:37 circassia kernel: xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x00109810 Feb 04 07:51:37 circassia kernel: xhci_hcd 0000:00:14.0: cache line size of 64 is not supported Feb 04 07:51:37 circassia kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 Feb 04 07:51:37 circassia kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 Feb 04 07:51:37 circassia kernel: usb usb1: Product: xHCI Host Controller Feb 04 07:51:37 circassia kernel: usb usb1: Manufacturer: Linux 4.10.0- rc6-2.g18f6269-default xhci-hcd Feb 04 07:51:37 circassia kernel: usb usb1: SerialNumber: 0000:00:14.0 Feb 04 07:51:37 circassia kernel: hub 1-0:1.0: USB hub found Feb 04 07:51:37 circassia kernel: hub 1-0:1.0: 12 ports detected Feb 04 07:51:37 circassia kernel: rtsx_pci 0000:3b:00.0: rtsx_pci_acquire_irq: pcr->msi_en = 1, pci->irq = 123 Feb 04 07:51:37 circassia kernel: nvme nvme0: pci function 0000:3c:00.0 Feb 04 07:51:37 circassia kernel: nvme0n1: p1 p2 Feb 04 07:51:37 circassia systemd[1]: Found device /dev/disk/by-uuid/ 7822-9D89. Feb 04 07:51:38 circassia kernel: input: Lid Switch as /devices/LNXSYSTM:00/ LNXSYBUS:00/PNP0C0D:00/input/input3 Feb 04 07:51:38 circassia kernel: ACPI: Lid Switch [LID0] Feb 04 07:51:38 circassia kernel: input: Power Button as /devices/LNXSYSTM:00/ LNXSYBUS:00/PNP0C0C:00/input/input4 Feb 04 07:51:38 circassia kernel: ACPI: Power Button [PBTN] Feb 04 07:51:38 circassia kernel: input: Sleep Button as /devices/LNXSYSTM:00/ LNXSYBUS:00/PNP0C0E:00/input/input5 Feb 04 07:51:38 circassia kernel: ACPI: Sleep Button [SBTN] Feb 04 07:51:38 circassia kernel: input: Power Button as /devices/LNXSYSTM:00/ LNXPWRBN:00/input/input6 Feb 04 07:51:38 circassia kernel: ACPI: Power Button [PWRF] Feb 04 07:51:38 circassia kernel: xhci_hcd 0000:00:14.0: xHCI Host Controller Feb 04 07:51:38 circassia kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 Feb 04 07:51:38 circassia kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 Feb 04 07:51:38 circassia kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 Feb 04 07:51:38 circassia kernel: usb usb2: Product: xHCI Host Controller Feb 04 07:51:38 circassia kernel: usb usb2: Manufacturer: Linux 4.10.0- rc6-2.g18f6269-default xhci-hcd Feb 04 07:51:38 circassia kernel: usb usb2: SerialNumber: 0000:00:14.0 Feb 04 07:51:38 circassia kernel: hub 2-0:1.0: USB hub found Feb 04 07:51:38 circassia kernel: hub 2-0:1.0: 6 ports detected Feb 04 07:51:38 circassia kernel: usb: port power management may be unreliable Feb 04 07:51:38 circassia kernel: [drm] Memory usable by graphics device = 4096M Feb 04 07:51:38 circassia kernel: checking generic (90000000 15f9000) vs hw (90000000 10000000) Feb 04 07:51:38 circassia kernel: fb: switching to inteldrmfb from EFI VGA Feb 04 07:51:38 circassia kernel: Console: switching to colour dummy device 80x25 Feb 04 07:51:38 circassia kernel: [drm] Replacing VGA console driver Feb 04 07:51:38 circassia kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Feb 04 07:51:38 circassia kernel: [drm] Driver supports precise vblank timestamp query. Feb 04 07:51:38 circassia kernel: i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem Feb 04 07:51:38 circassia kernel: [drm] Finished loading i915/ skl_dmc_ver1_26.bin (v1.26) Feb 04 07:51:38 circassia kernel: [drm] GuC firmware load skipped Feb 04 07:51:38 circassia kernel: ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) Feb 04 07:51:38 circassia kernel: input: Video Bus as /devices/LNXSYSTM:00/ LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input7 Feb 04 07:51:38 circassia kernel: [drm] Initialized i915 1.6.0 20161121 for 0000:00:02.0 on minor 0 Feb 04 07:51:39 circassia kernel: fbcon: inteldrmfb (fb0) is primary device Feb 04 07:51:39 circassia kernel: random: fast init done Feb 04 07:51:39 circassia kernel: psmouse serio1: synaptics: queried max coordinates: x [..5666], y [..4734] Feb 04 07:51:39 circassia kernel: psmouse serio1: synaptics: queried min coordinates: x [1276..], y [1118..] Feb 04 07:51:39 circassia kernel: usb 1-3: new full-speed USB device number 2 using xhci_hcd Feb 04 07:51:39 circassia kernel: psmouse serio1: synaptics: Touchpad model: 1, fw: 8.2, id: 0x1e2a1, caps: 0xf00223/0x840300/0x12e800/0x0, board id: 3038, fw id: 2011643 Feb 04 07:51:39 circassia kernel: input: SynPS/2 Synaptics TouchPad as / devices/platform/i8042/serio1/input/input2 Feb 04 07:51:39 circassia kernel: clocksource: Switched to clocksource tsc Feb 04 07:51:39 circassia kernel: usb 1-3: New USB device found, idVendor=0a5c, idProduct=6412 Feb 04 07:51:39 circassia kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Feb 04 07:51:39 circassia kernel: usb 1-3: Product: BCM2045A0 Feb 04 07:51:39 circassia kernel: usb 1-3: Manufacturer: Broadcom Corp Feb 04 07:51:39 circassia kernel: usb 1-3: SerialNumber: 3052CB83DCBA Feb 04 07:51:39 circassia kernel: usb 1-4: new full-speed USB device number 3 using xhci_hcd Feb 04 07:51:39 circassia kernel: random: crng init done Feb 04 07:51:39 circassia kernel: usb 1-4: New USB device found, idVendor=04f3, idProduct=20d0 Feb 04 07:51:39 circassia kernel: usb 1-4: New USB device strings: Mfr=4, Product=14, SerialNumber=0 Feb 04 07:51:39 circassia kernel: usb 1-4: Product: Touchscreen Feb 04 07:51:39 circassia kernel: usb 1-4: Manufacturer: ELAN Feb 04 07:51:39 circassia kernel: usbcore: registered new interface driver usbhid Feb 04 07:51:39 circassia kernel: usbhid: USB HID core driver Feb 04 07:51:39 circassia kernel: input: ELAN Touchscreen as /devices/ pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:04F3:20D0.0001/input/input8 Feb 04 07:51:39 circassia kernel: hid-multitouch 0003:04F3:20D0.0001: input,hiddev0,hidraw0: USB HID v1.10 Device [ELAN Touchscreen] on usb-0000:00:14.0-4/input0 Feb 04 07:51:39 circassia kernel: usb 1-5: new high-speed USB device number 4 using xhci_hcd Feb 04 07:51:39 circassia kernel: usb 1-5: New USB device found, idVendor=0bda, idProduct=5682 Feb 04 07:51:39 circassia kernel: usb 1-5: New USB device strings: Mfr=3, Product=1, SerialNumber=2 Feb 04 07:51:39 circassia kernel: usb 1-5: Product: Integrated_Webcam_HD Feb 04 07:51:39 circassia kernel: usb 1-5: Manufacturer: CKFEH41I385010020402 Feb 04 07:51:39 circassia kernel: usb 1-5: SerialNumber: 200901010001 Feb 04 07:51:39 circassia kernel: [drm] RC6 on Feb 04 07:51:39 circassia kernel: Console: switching to colour frame buffer device 400x112 Feb 04 07:51:39 circassia kernel: i915 0000:00:02.0: fb0: inteldrmfb frame buffer device Feb 04 07:51:39 circassia dracut-initqueue[306]: Failed to start systemd- cryptsetup@luks\x2d1b1dd170\x2da13d\x2d4d89\x2da6b5\x2d0eaa84888d9d.service: Unit systemd-cryptsetup@luks\x2d1b1dd170\x2da13d \x2d4d89\x2da6b5\x2d0eaa84888d9d.service not found. Feb 04 07:51:44 circassia systemd[1]: Received SIGRTMIN+20 from PID 307 (plymouthd). Feb 04 07:51:46 circassia systemd[1]: Received SIGRTMIN+20 from PID 307 (plymouthd). Feb 04 07:53:45 circassia dracut-initqueue[306]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 04 07:53:45 circassia dracut-initqueue[306]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 04 07:54:47 circassia dracut-initqueue[306]: Warning: Could not boot. Feb 04 07:54:47 circassia systemd[1]: Received SIGRTMIN+20 from PID 307 (plymouthd). Feb 04 07:54:47 circassia dracut-initqueue[306]: Warning: /dev/mapper/system- root does not exist Feb 04 07:54:47 circassia dracut-initqueue[306]: Warning: /dev/system/root does not exist Feb 04 07:54:47 circassia systemd[1]: Starting Setup Virtual Console... Feb 04 07:54:47 circassia systemd[1]: Started Setup Virtual Console. Feb 04 07:54:47 circassia systemd[1]: Starting Dracut Emergency Shell... Feb 04 07:54:47 circassia systemd[1]: Received SIGRTMIN+21 from PID 307 (plymouthd). the solution is still the same. I suspect there is more than one patch needed. On Friday, 3 February 2017 03:45:08 GMT Andrei Borzenkov wrote:
02.02.2017 23:46, Alin M Elena пишет:
I have an opensuse install with encrypted root and home partitions. lvm + luks. afte the update I ended up with a failure at boot, after grub
Feb 02 20:28:15 circassia dracut-initqueue[368]: systemd-escape: invalid option -- '1'
Could be this problem fixed upstream
commit c41df7e1db1adc51399ab2c22f251b15eb2065b1 Author: Alexander Tsoy <alexander@tsoy.me> Date: Tue Jan 5 22:11:57 2016 +0300
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"
crypt/parse-crypt.sh generate initqueue job which always call dev_unit_name() with an argument beginning with "-". This results in the following error:
dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087 dracut-initqueue[307]: systemd-escape: invalid option -- 'c'
Feb 02 20:28:15 circassia dracut-initqueue[368]: Failed to start systemd- cryptsetup@luks.service: Unit systemd-cryptsetup@luks.service not found. Feb 02 20:30:21 circassia dracut-initqueue[368]: Warning: dracut-initqueue timeout - starting timeout scripts Feb 02 20:31:22 circassia dracut-initqueue[368]: Warning: Could not boot. Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/mapper/system- root does not exist Feb 02 20:31:23 circassia dracut-initqueue[368]: Warning: /dev/system/root does not exist Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: Not all disks have been found. Feb 02 20:34:42 circassia dracut-initqueue[368]: Warning: You might want to regenerate your initramfs. Feb 02 20:34:42 circassia systemd[1]: Started dracut initqueue hook.
and i endup in a shell. luckily enough with some magic I managed to boot but regenerating initrd as suggedsted did not help.
cryptsetup luksOpen /dev/<part> cr_lvm lvm vgchange -ay ln -s /dev/mapper/<root> /dev/root exit
and then it boots...
Alin
this happened with both kernel 4.10 from kernel head and 4.9 from Tumbleweed.
-- Without Questions there are no Answers! _______________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ _______________________________________
04.02.2017 11:03, Alin M Elena пишет:
Feb 04 07:51:37 circassia dracut-cmdline[146]: Using kernel command line parameters: rd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d rd.lvm.lv=system/root root=/dev/mapper/system-root rootfstype=ext4 rootflags=rw,relatime,data=ordered BOOT_IMAGE=/boot/vmlinuz-4.10.0- rc6-2.g18f6269-default root=/dev/mapper/system-root splash=silent quiet showopts
Are they stored kernel options or actually present on kernel command line? ...
Feb 04 07:51:39 circassia dracut-initqueue[306]: Failed to start systemd- cryptsetup@luks\x2d1b1dd170\x2da13d\x2d4d89\x2da6b5\x2d0eaa84888d9d.service: Unit systemd-cryptsetup@luks\x2d1b1dd170\x2da13d \x2d4d89\x2da6b5\x2d0eaa84888d9d.service not found.
OK, now I remember (and I thought there was a bug report about it but I cannot find it). When systemd is used, it relies on generator to create service for root device, but generator is not aware of stored dracut kernel parameters and is able to only process actual kernel command line or /etc/crypttab. Now the case I remember was that after installation dracut did not include /etc/crypttab for root and failed with similar message. Actually, AFAICR there was no /etc/crypttab after installation at all. Hope it gives enough starting point.
04.02.2017 11:03, Alin M Elena пишет:
Feb 04 07:51:37 circassia dracut-cmdline[146]: Using kernel command line parameters: rd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d rd.lvm.lv=system/root root=/dev/mapper/system-root rootfstype=ext4 rootflags=rw,relatime,data=ordered BOOT_IMAGE=/boot/vmlinuz-4.10.0- rc6-2.g18f6269-default root=/dev/mapper/system-root splash=silent quiet showopts
Are they stored kernel options or actually present on kernel command line? I do not see them in the grub line so I suspect the luks info comes from somewhere else. ...
Feb 04 07:51:39 circassia dracut-initqueue[306]: Failed to start systemd- cryptsetup@luks\x2d1b1dd170\x2da13d\x2d4d89\x2da6b5\x2d0eaa84888d9d.servic e: Unit systemd-cryptsetup@luks\x2d1b1dd170\x2da13d \x2d4d89\x2da6b5\x2d0eaa84888d9d.service not found.
OK, now I remember (and I thought there was a bug report about it but I cannot find it). When systemd is used, it relies on generator to create service for root device, but generator is not aware of stored dracut kernel parameters and is able to only process actual kernel command line or /etc/crypttab. Now the case I remember was that after installation dracut did not include /etc/crypttab for root and failed with similar message. Actually, AFAICR there was no /etc/crypttab after installation at all. I think I know the bug you think of... is this https://bugzilla.opensuse.org/show_bug.cgi?id=904987 ?
On Saturday, 4 February 2017 17:48:19 GMT Andrei Borzenkov wrote: that pointed me to check that /etc/crypttab exists... now I checked that actually is valid and of course is not... cat /etc/crypttab cr_nvme-2002538435b1b37d4-part2 /dev/disk/by-id/nvme-2002538435b1b37d4-part2 none none ls /dev/disk/by-id/ dm-name-cr-lvm nvme-eui.002538435b1b37d4-part1 dm-name-system-home nvme-eui.002538435b1b37d4-part2 dm-name-system-root nvme-PM951 dm-uuid-CRYPT-LUKS1-1b1dd170a13d4d89a6b50eaa84888d9d-cr-lvm -PM951 dm-uuid-LVM-DPo6X8wTh2ltloJqbAGmTvyVov5S3EnBhX4itQs8LJUTodnCmRDf9ob6L16K2rsH raid-cr-lvm dm-uuid-LVM-DPo6X8wTh2ltloJqbAGmTvyVov5S3EnBQaM4myUMhxvNNEmRzA9lwdFmrKLVfBeo raid-system-home lvm-pv-uuid-I02xcg-WV3n-gTth-hrui-1lNL-0nXZ-yF8erU raid-system-root nvme-eui.002538435b1b37d4 of course I am lost of the meaning of these. Regards, Alin -- Without Questions there are no Answers! _______________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ _______________________________________
04.02.2017 21:08, Alin M Elena пишет:
On Saturday, 4 February 2017 17:48:19 GMT Andrei Borzenkov wrote:
04.02.2017 11:03, Alin M Elena пишет:
Feb 04 07:51:37 circassia dracut-cmdline[146]: Using kernel command line parameters: rd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d rd.lvm.lv=system/root root=/dev/mapper/system-root rootfstype=ext4 rootflags=rw,relatime,data=ordered BOOT_IMAGE=/boot/vmlinuz-4.10.0- rc6-2.g18f6269-default root=/dev/mapper/system-root splash=silent quiet showopts
Are they stored kernel options or actually present on kernel command line? I do not see them in the grub line so I suspect the luks info comes from somewhere else. ...
Feb 04 07:51:39 circassia dracut-initqueue[306]: Failed to start systemd- cryptsetup@luks\x2d1b1dd170\x2da13d\x2d4d89\x2da6b5\x2d0eaa84888d9d.servic e: Unit systemd-cryptsetup@luks\x2d1b1dd170\x2da13d \x2d4d89\x2da6b5\x2d0eaa84888d9d.service not found.
OK, now I remember (and I thought there was a bug report about it but I cannot find it). When systemd is used, it relies on generator to create service for root device, but generator is not aware of stored dracut kernel parameters and is able to only process actual kernel command line or /etc/crypttab. Now the case I remember was that after installation dracut did not include /etc/crypttab for root and failed with similar message. Actually, AFAICR there was no /etc/crypttab after installation at all. I think I know the bug you think of... is this https://bugzilla.opensuse.org/show_bug.cgi?id=904987 ?
No, may be it was forum thread. I forgot, sorry. But yes, it apparently describes exactly the same problem.
that pointed me to check that /etc/crypttab exists... now I checked that actually is valid and of course is not...
cat /etc/crypttab cr_nvme-2002538435b1b37d4-part2 /dev/disk/by-id/nvme-2002538435b1b37d4-part2 none none
ls /dev/disk/by-id/ dm-name-cr-lvm nvme-eui.002538435b1b37d4-part1 dm-name-system-home nvme-eui.002538435b1b37d4-part2 dm-name-system-root nvme-PM951 dm-uuid-CRYPT-LUKS1-1b1dd170a13d4d89a6b50eaa84888d9d-cr-lvm -PM951 dm-uuid-LVM-DPo6X8wTh2ltloJqbAGmTvyVov5S3EnBhX4itQs8LJUTodnCmRDf9ob6L16K2rsH raid-cr-lvm dm-uuid-LVM-DPo6X8wTh2ltloJqbAGmTvyVov5S3EnBQaM4myUMhxvNNEmRzA9lwdFmrKLVfBeo raid-system-home lvm-pv-uuid-I02xcg-WV3n-gTth-hrui-1lNL-0nXZ-yF8erU raid-system-root nvme-eui.002538435b1b37d4
of course I am lost of the meaning of these.
Then how can you decide whether crypttab is valid or not? Show output of blkid. And for quick test add frd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d to kernel command line - does it help?
Hi Andrei,
Show output of blkid.
/dev/nvme0n1: PTUUID="4da66b1a-3ea0-4f89-85e8-c1a6598ad68a" PTTYPE="gpt" /dev/nvme0n1p1: SEC_TYPE="msdos" UUID="7822-9D89" TYPE="vfat" PARTLABEL="primary" PARTUUID="16f9c0f0-e537-460d-b589-68e89721ae9b" /dev/nvme0n1p2: UUID="1b1dd170-a13d-4d89-a6b5-0eaa84888d9d" TYPE="crypto_LUKS" PARTLABEL="primary" PARTUUID="11385b32-e7ea-45dc-a67d-a5e29549fa3e" /dev/mapper/luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d: UUID="I02xcg-WV3n-gTth- hrui-1lNL-0nXZ-yF8erU" TYPE="LVM2_member" /dev/mapper/system-root: UUID="f20bb990-7655-464f-a674-9451f35795cd" TYPE="ext4" /dev/mapper/system-home: UUID="5b7b832c-4e39-449b-bb41-009a2028034f" TYPE="ext4"
And for quick test add frd.luks.uuid=luks-1b1dd170-a13d-4d89-a6b5-0eaa84888d9d to kernel command line - does it help? shall be rd. rather than frd. but indeed works. I hit another one bu after, that came in at the beginning of January, but it boots.
Alin -- Without Questions there are no Answers! _______________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ _______________________________________
participants (2)
-
Alin M Elena
-
Andrei Borzenkov