Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17631 - [initscripts] external USB partitions in rc.sysinit

Attached to Project: Arch Linux
Opened by Mihai Militaru (akephalos) - Monday, 28 December 2009, 14:39 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 10 August 2010, 13:16 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Some external USB drives take a longer time to start. In these conditions, it's corresponding device blocks have not time to populate /dev, although rc.sysinit tries to map crypttab entries, or to check and mount them.
The solution is to wait for each device to appear in /dev using a more elegant function than 'sleep 5'.


Additional info:
* package version: 2009.08-1
* config and/or log files:
- default rc.sysinit script
- crypttab containing entries like:
+ # NAME SOURCE DEVICE PASSWORD OPTIONS
+ external /dev/sdb1 /path/to/external.key
...where /dev/sdb1 is a LUKS partition on an external USB disk, in my case Seagate FreeAgent Desktop
- the boot error attests that the device blocks are not found (no such file...)
- fsck and mount fail and the system falls to maintenance prompt.


Steps to reproduce:
- plug-in an external drive with a LUKS partition
- add an entry in /etc/crypttab to open the partition at startup using a key file
- reboot
Note that the bug might not be reproductible with responsive drives.

I'm attaching the sysinit file I currently use, I modified the crypttab part in it only, but it should be used for fsck and other operations requiring USB disks as well, imo:
- function: lines 158 - 174
- usage: line 190
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Tuesday, 10 August 2010, 13:16 GMT
Reason for closing:  None
Comment by Roman Kyrylych (Romashka) - Tuesday, 10 August 2010, 08:06 GMT
I wonder what is the status of this with all the recent changes in initscripts.
Comment by Mihai Militaru (akephalos) - Tuesday, 10 August 2010, 12:13 GMT
I've not used this for a while because I converted my external partitions to plain filesystem. I recall that the last time I quickly looked through the initscripts and I did not figure out where the lines in the patch should be put anymore.
So basically I have no idea if this modification is required anymore or if it can still be applicable; I can't test it, too.

Loading...