]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix _getcmdline arg-duplicating bug with /etc/cmdline*
authorWill Woods <wwoods@redhat.com>
Tue, 1 May 2012 18:08:33 +0000 (14:08 -0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 2 May 2012 12:41:37 +0000 (14:41 +0200)
commit982161e062e1696067cc19a990a31924b29c0df1
tree24cbd867e9a85e3ed72bc3b28a881eaf92d20680
parent5a81678219a2cbf6f39e47f85d2fcb525ac2143c
fix _getcmdline arg-duplicating bug with /etc/cmdline*

If you unset CMDLINE to make _getcmdline re-read /etc/cmdline and
/etc/cmdline.d/*, CMDLINE_ETC and CMDLINE_ETC_D would keep their
contents.

This is a serious problem if you have (e.g.) "ip=eth0:dhcp" in
/etc/cmdline.d/net.conf, because getargs ip= will return
"ip=eth0:dhcp ip=eth0:dhcp" and then parse-ip-opts.sh will die() because
you have two configurations for eth0.
modules.d/99base/dracut-lib.sh