Summary: | sys-kernel/dracut-036-r1 - /usr/bin/dracut: line 1472: lz4: command not found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Core system | Assignee: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 502176 | ||
Bug Blocks: | |||
Attachments: | dracut.sh-pass-the-legacy-flag-l-to-lz4.patch |
Description
Dennis Schridde
2014-02-22 11:00:28 UTC
Workaround: # ln -s lz4c /usr/bin/lz4 (In reply to Dennis Schridde from comment #1) > Workaround: > # ln -s lz4c /usr/bin/lz4 This does not seem to work. I get "unable to mount root fs" when booting. (Apparently the kernel cannot mount the lz4 compressed initrd.) Booting a lz4 compressed kernel (CONFIG_KERNEL_LZ4=y) with a lzo compressed initrd (dracut --lzo) works, though. So the kernel lz4 support apparently works at least for certain usecases. (In reply to Dennis Schridde from comment #2) > (In reply to Dennis Schridde from comment #1) > > Workaround: > > # ln -s lz4c /usr/bin/lz4 > > This does not seem to work. I get "unable to mount root fs" when booting. > (Apparently the kernel cannot mount the lz4 compressed initrd.) You have to enable CONFIG_RD_LZ4 (In reply to Alexander Tsoy from comment #3) > (In reply to Dennis Schridde from comment #2) > > (In reply to Dennis Schridde from comment #1) > > > Workaround: > > > # ln -s lz4c /usr/bin/lz4 > > > > This does not seem to work. I get "unable to mount root fs" when booting. > > (Apparently the kernel cannot mount the lz4 compressed initrd.) > > You have to enable CONFIG_RD_LZ4 I did: CONFIG_RD_LZ4=y - the problem must be somewhere else. Created attachment 371184 [details, diff] dracut.sh-pass-the-legacy-flag-l-to-lz4.patch According to [1] initramfs should be compressed with the -l (legacy) flag. Please try the attached patch. [1] https://lkml.org/lkml/2014/2/15/211 Patch fixed the problem. I sent it upstream. First half of the fix regarding lz4 support: http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=8a2db478defe9cbc60ec9923e39c62d1504a2b45 The other half is a packaging issue of app-arch/lz4 (bug 502176) Thanks! +*dracut-036-r4 (26 Feb 2014) + + 26 Feb 2014; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-036-r4.ebuild, + +files/036-0008-Add-legacy-flag-l-to-lz4-and-update-ma.patch: + Fixed bug #502102. + + Commit on behalf of Alexander Tsoy <alexander@tsoy.me>. + |