Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541216 - sys-kernel/dracut-041 - bashism in 99base/dracut-lib.sh
Summary: sys-kernel/dracut-041 - bashism in 99base/dracut-lib.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 09:25 UTC by Alexander Tsoy
Modified: 2015-06-07 16:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2015-02-24 09:25:21 UTC
There is a bashism in dracut-lib.sh in function dev_unit_name():
dev=${dev/#\./\\x2e}

If dash is used as /bin/sh in initramfs, the following warnings printed on every boot:

$ grep 'Bad subs' rdsosreport.txt 
[    2.493678] laptop dracut-cmdline[121]: /bin/dracut-cmdline: 889: //lib/dracut/hooks/cmdline/30-parse-lvm.sh: Bad substitution
[    2.537849] laptop dracut-cmdline[121]: /bin/dracut-cmdline: 889: //lib/dracut/hooks/cmdline/30-parse-lvm.sh: Bad substitution
[    2.578491] laptop dracut-cmdline[121]: /bin/dracut-cmdline: 889: //lib/dracut/hooks/cmdline/30-parse-lvm.sh: Bad substitution
[    3.854089] laptop dracut-initqueue[250]: /bin/dracut-initqueue: 889: /lib/dracut/hooks/initqueue/settled/systemd-cryptsetup-sda3.sh: Bad substitution
Comment 1 Alexander Tsoy 2015-02-24 09:40:38 UTC
I asked on the initramfs@ ML about the status of dash support in dracut.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2015-06-07 16:40:39 UTC
Done. Thank you!