Summary: | =sys-kernel/dracut-027 - Cannot install systemd units properly. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Łukasz Stelmach <stlman> |
Component: | [OLD] Core system | Assignee: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, nikoli |
Priority: | Normal | Keywords: | PATCH |
Version: | 10.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
dracut-027-r1.ebuild.patch
dracut-027-r1.ebuild.patch dracut-027-r1.ebuild.patch dracut-027-r1.ebuild.patch |
Description
Łukasz Stelmach
2013-04-28 15:00:59 UTC
Created attachment 346908 [details, diff]
dracut-027-r1.ebuild.patch
2 fixes here:
- install systemd units into correct location
- fix installation of bash-completion script. dracut-027-r1 installs it twice:
$ qlist dracut | grep bash-completion
/usr/share/bash-completion/dracut
/usr/share/bash-completion/completions/dracut
Note that /usr/share/bash-completion/completions is a default location for >=bash-completion-2 (not in Portage yet) and >=bash-completion-1.3-r1 (not stable yet) installs bash-completion.pc pkg-config file.
Created attachment 346910 [details, diff]
dracut-027-r1.ebuild.patch
- do not inherit bash-completion-r1
I didn't test this patch yet, but seems it works. before: $ qlist dracut | egrep '.*service$' /usr/lib/dracut/modules.d/98systemd/dracut-emergency.service /usr/lib/dracut/modules.d/98systemd/dracut-pre-udev.service /usr/lib/dracut/modules.d/98systemd/dracut-cmdline.service /usr/lib/dracut/modules.d/98systemd/rescue.service /usr/lib/dracut/modules.d/98systemd/dracut-mount.service /usr/lib/dracut/modules.d/98systemd/dracut-pre-pivot.service /usr/lib/dracut/modules.d/98systemd/dracut-pre-trigger.service /usr/lib/dracut/modules.d/98systemd/dracut-pre-mount.service /usr/lib/dracut/modules.d/98systemd/emergency.service /usr/lib/dracut/modules.d/98systemd/dracut-initqueue.service after: work image # pwd /var/tmp/portage/sys-kernel/dracut-027-r2/image work image # find . -name '*.service' ./usr/lib/dracut/modules.d/98systemd/dracut-initqueue.service ./usr/lib/dracut/modules.d/98systemd/emergency.service ./usr/lib/dracut/modules.d/98systemd/dracut-pre-mount.service ./usr/lib/dracut/modules.d/98systemd/dracut-pre-trigger.service ./usr/lib/dracut/modules.d/98systemd/dracut-pre-pivot.service ./usr/lib/dracut/modules.d/98systemd/dracut-mount.service ./usr/lib/dracut/modules.d/98systemd/rescue.service ./usr/lib/dracut/modules.d/98systemd/dracut-cmdline.service ./usr/lib/dracut/modules.d/98systemd/dracut-pre-udev.service ./usr/lib/dracut/modules.d/98systemd/dracut-emergency.service ./usr/lib/systemd/system/dracut-initqueue.service ./usr/lib/systemd/system/dracut-pre-mount.service ./usr/lib/systemd/system/shutdown.target.wants/dracut-shutdown.service ./usr/lib/systemd/system/dracut-shutdown.service ./usr/lib/systemd/system/dracut-pre-trigger.service ./usr/lib/systemd/system/dracut-pre-pivot.service ./usr/lib/systemd/system/dracut-mount.service ./usr/lib/systemd/system/initrd.target.wants/dracut-initqueue.service ./usr/lib/systemd/system/initrd.target.wants/dracut-pre-mount.service ./usr/lib/systemd/system/initrd.target.wants/dracut-pre-trigger.service ./usr/lib/systemd/system/initrd.target.wants/dracut-pre-pivot.service ./usr/lib/systemd/system/initrd.target.wants/dracut-mount.service ./usr/lib/systemd/system/initrd.target.wants/dracut-cmdline.service ./usr/lib/systemd/system/initrd.target.wants/dracut-pre-udev.service ./usr/lib/systemd/system/dracut-cmdline.service ./usr/lib/systemd/system/dracut-pre-udev.service Created attachment 346912 [details, diff]
dracut-027-r1.ebuild.patch
- "local myconf=..." -> "myconf=..."
Confirmed working. In fact while the title might suggest a smallish issue, the impact is actully more severy. Without this fix any system that uses e.g. dracut + systemd + root on LVM actually shows this nasty behaviour: On boot, dracut times out to the emergency shell, where you need these to get the system running: systemctl start systemd-udevd lvm vgchange -ay Created attachment 348338 [details, diff]
dracut-027-r1.ebuild.patch
- use systemd eclass
Thank you Alexander for the patch! I have removed parts relating to bashcomp leaving bash-completion eclass. Could you test if my slight modification still works? I don't have systemd to test with. +*dracut-027-r2 (19 May 2013) + + 19 May 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-027-r2.ebuild: + Fixes bug #467754: + + - Install systemd units into correct location. + - Fix installation of bash-completion script. It used to be installed in two + locations. + + Thanks to Alexander Tsoy <alexander@tsoy.me> for patch: + https://bugs.gentoo.org/attachment.cgi?id=348338 + + Which has been applied slightly modified. + No, you did it wrong: now dracut installs /dracut $ file /dracut /dracut: Bourne-Again shell script, ASCII text executable Ach, I have had to miss it. But anyway bashcomp problem is covered in bug #469892. Please report only problems wrt systemd here. -r3 works fine with systemd. Works for me too. Thank you for testing. |