| Summary: | dracut does not generate correct initrd with btrfs | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Rémy CLOUARD (shikamaru) <shikamaru> |
| Component: | RPM Packages | Assignee: | Colin Guthrie <mageia> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | Kicer86 |
| Version: | Cauldron | Keywords: | NEEDINFO, Triaged |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | dracut-013-2.mga2.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
lsinitrd /boot/initrd-3.1.0-desktop-0.rc10.1.mga2.img generated by dracut
content of init content of old init ( content of /etc/dracut.conf |
||
|
Description
Rémy CLOUARD (shikamaru)
2011-10-29 10:56:30 CEST
Created attachment 1020 [details]
lsinitrd /boot/initrd-3.1.0-desktop-0.rc10.1.mga2.img generated by dracut
Bug assigned to the package maintainer. Assignee:
bugsquad =>
mageia Created attachment 1021 [details]
content of init
here is what I have in the init contained in my initrd
Created attachment 1022 [details]
content of old init (
in case it might be useful, my version/release of udev is 173-3.mga2 Created attachment 1023 [details]
content of /etc/dracut.conf
some additional info, in case it might be interesting. I tried to load the btrfs module in the dracut shell, by issuing a modprobe btrfs. Seems like the module canât be loaded, but I also get an error with the zlib_deflate module, though I can load this module individually. Any idea ? I've just updated dracut to latest git master. Can you take it for a spin? Keywords:
(none) =>
NEEDINFO, Triaged I also found a bug that could be related to incorrect root device calculations when the *any* btrfs partitions are found. Please test the 013-7.mga2 version of the package just submitted and let me know if things behave better now. I just tested it and it still occurs (kernel 3.1.4 boots fine, 3.1.6 does not) CC:
(none) =>
Kicer86 Can you give some debug output from then it does not boot? You should be dumped to a shell where you can issue various commands and inspect previous command output. One of the commands is failing (presumably one related to fsck in some capacity. Please give us some info on this! it's the same issue as Rémy's: module btrfs could not be loaded because zlib_deflate cannot be loaded OK, so getting somewhere... As described here: https://bugs.launchpad.net/ubuntu/+source/linux-linaro-omap/+bug/715835 the problem is the lack of a hard dep on a crc32 implementation (btrfs itself just requires the libcrc32 module). So, it's trivial to fix dracut to ensure that crc32c is included (add it to the instmods line in 90btrfs/module-setup.sh) However when doing this, it still fails to boot when using a root=UUID=nnn syntax. I think dracut is someone extracting certain things from either blkid or udev incorrectly. If you use root=/dev/sda1 etc. it'll work fine. Anyway I'll try and work on a full fix shortly.
Colin Guthrie
2011-12-26 23:53:16 CET
Status:
NEW =>
ASSIGNED Hmm, actually it's the resume= bit that seems to break things (which I think is covered in another bug (or at least it was on my mental list), and deleting the resume= bits from the kernel command line allows it to boot fine even with a UUID= type syntax. Job's a good 'un. Status:
ASSIGNED =>
RESOLVED works indeed, thx |