FS#30892 - [initscripts] 2012.07.5-1: boot problems

Attached to Project: Arch Linux
Opened by Mathias Anselmann (matse) - Saturday, 28 July 2012, 09:32 GMT
Last edited by Allan McRae (Allan) - Friday, 16 November 2012, 14:52 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description:
After updating to the new initscripts 2012.07.5-1 I got the following error on boot:

Sat Jul 28 11:12:12 2012: :: Adjusting system time and setting kernel time zone [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Starting udev daemon [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Triggering udev uevents [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Loading user-specified modules [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Waiting for udev uevents to be processed [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Configuring virtual consoles [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Bringing up loopback interface [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: :: Activating LVM2 groups [BUSY] [DONE]
Sat Jul 28 11:12:12 2012: Unlocking mydl
Sat Jul 28 11:12:12 2012: Unlocking mydata
Sat Jul 28 11:12:12 2012: :: Checking filesystems [BUSY] myboot: clean, 25/500960 files, 83447/2000084 blocks
Sat Jul 28 11:12:12 2012: fsck.ext4: No such file or directory while trying to open /dev/myvg1/lvdl
Sat Jul 28 11:12:12 2012: Possibly non-existent device?
Sat Jul 28 11:12:12 2012: /dev/mapper/mydata: clean, 18306/122101760 files, 281931184/488378126 blocks
Sat Jul 28 11:12:12 2012: [FAIL]
Sat Jul 28 11:12:12 2012:
Sat Jul 28 11:12:12 2012: ***************** FILESYSTEM CHECK FAILED ****************
Sat Jul 28 11:12:12 2012: * *
Sat Jul 28 11:12:12 2012: * Please repair manually and reboot. Note that the root *
Sat Jul 28 11:12:12 2012: * file system is currently mounted read-only. To remount *
Sat Jul 28 11:12:12 2012: * it read-write, type: mount -o remount,rw / *
Sat Jul 28 11:12:12 2012: * When you exit the maintenance shell, the system will *
Sat Jul 28 11:12:12 2012: * reboot automatically. *
Sat Jul 28 11:12:12 2012: * *
Sat Jul 28 11:12:12 2012: ************************************************************
Sat Jul 28 11:12:12 2012:
Sat Jul 28 11:12:12 2012: Give root password for maintenance
Sat Jul 28 11:12:12 2012: (or type Control-D to continue):


So the problem is that "/dev/myvg1/lvdl" is not accessible, manually executing "vgchange -a y" in recovery console resolves this issue and I can fsck and mount my partitions manually.
I have to say that the problem is caused by two additional hdds (not my root hdd, / is working fine), that are encrypted and have lvm on top of it.
Downgrading to initscripts 2012.06.3-2 also fixes that issue for me.

Additional info:
* package version(s)
initscripts 2012.07.5-1
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 16 November 2012, 14:52 GMT
Reason for closing:  Won't fix
Additional comments about closing:  works with systemd
Comment by Felix Stürmer (fstuermer) - Saturday, 28 July 2012, 10:43 GMT
The same thing happened to me. I tracked it down to line 83 of /etc/rc.sysinit [1]. activate_vgs is not called even if devices have been unlocked. This is a change that has been introduced in commit 476b308f121b934859080e5ca48a93a504aadaf6 [2].
Removing the "(( $? ))" works as workarount for me, so the problem seems to be that read_crypttab does not return the correct status code.

[1] https://projects.archlinux.org/initscripts.git/tree/rc.sysinit#n83
[2] https://projects.archlinux.org/initscripts.git/commit/rc.sysinit?id=476b308f121b934859080e5ca48a93a504aadaf6
Comment by Dave Reisner (falconindy) - Saturday, 28 July 2012, 14:37 GMT
Negating the evaluation would be the proper thing to do here... as it stands, activate_vgs is called on failure, not success.

http://sprunge.us/aCab
Comment by Tom Gundersen (tomegun) - Saturday, 04 August 2012, 22:35 GMT
Should be fixed by initscripts in testing. If not, please reopen.
Comment by c (c) - Tuesday, 07 August 2012, 10:25 GMT
Same problem described in  FS#30984  with 2012.08.1-1 installed. Anything else than updating initscripts required to get the fix?
logical partition (sda8) swap unlock fails.
swap /dev/sda8 /dev/urandom swap,cipher=aes-xts-plain64:sha512,size=512
Comment by Tom Gundersen (tomegun) - Sunday, 04 November 2012, 16:22 GMT
Please try with systemd. If still does not work, open a new bug against that.
Comment by c (c) - Sunday, 04 November 2012, 16:24 GMT
With systemd it works.

Loading...