Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803548 - sys-kernel/dracut-055: Empty string passed to init as an argument
Summary: sys-kernel/dracut-055: Empty string passed to init as an argument
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-23 17:58 UTC by Brian Evans (RETIRED)
Modified: 2021-07-23 19:16 UTC (History)
3 users (show)

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 Brian Evans (RETIRED) gentoo-dev 2021-07-23 17:58:28 UTC
The latest dracut is passing "" to init as argv[1].

This is breaking inits and apps started as init.

For example, openrc-init as shown in bug 803536 and /bin/bb which is often used for emergency debugging

Reverting to 053-r1 fixed init issues.
Comment 1 Mike Gilbert gentoo-dev 2021-07-23 18:32:01 UTC
Looks like this commit broke it.

https://github.com/dracutdevs/dracut/commit/2fabaaa62dcfd31e593ca45e1374e55adae29d6b
Comment 2 Mike Gilbert gentoo-dev 2021-07-23 18:38:00 UTC
Please give this a try:

https://github.com/dracutdevs/dracut/pull/1569
Comment 3 Alexander Tsoy 2021-07-23 18:42:22 UTC
(In reply to Mike Gilbert from comment #1)
This commit also broke some cryptsetup setups. :) We need this patch as well:
https://github.com/dracutdevs/dracut/commit/e0abf88a15d23fbf793cf872397016ad86aeaaa8
Comment 4 Brian Evans (RETIRED) gentoo-dev 2021-07-23 18:52:09 UTC
(In reply to Mike Gilbert from comment #2)
> Please give this a try:
> 
> https://github.com/dracutdevs/dracut/pull/1569

Fixes booting for both test cases I have access to
Comment 5 Larry the Git Cow gentoo-dev 2021-07-23 19:16:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b11a0316d954d186df8c61aee62402ff6026c7dc

commit b11a0316d954d186df8c61aee62402ff6026c7dc
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-07-23 19:13:04 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-07-23 19:13:04 +0000

    sys-kernel/dracut: fix quoting issues
    
    Closes: https://bugs.gentoo.org/803548
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../{dracut-055.ebuild => dracut-055-r1.ebuild}    |  2 ++
 ...ase-do-not-quote-initargs-for-switch_root.patch | 32 ++++++++++++++++++
 ...x-crypt-remove-quotes-from-cryptsetupopts.patch | 39 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)