diff options
author | Harald Hoyer <harald@redhat.com> | 2012-10-19 11:09:38 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-10-19 11:09:38 +0200 |
commit | 636e5cd2d53c8165a0dc5f857af643fd15faea9d (patch) | |
tree | bae8c40897666bc59928e1582a31759e70f30598 /dracut.sh | |
parent | f046336c44c1a88508c825744bd2da0aae707e13 (diff) | |
download | dracut-636e5cd2d53c8165a0dc5f857af643fd15faea9d.tar.gz dracut-636e5cd2d53c8165a0dc5f857af643fd15faea9d.tar.bz2 dracut-636e5cd2d53c8165a0dc5f857af643fd15faea9d.zip |
dracut.sh: only save $kernel_cmdline, if set
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -937,7 +937,7 @@ fi if [[ $kernel_only != yes ]]; then (( ${#install_items[@]} > 0 )) && dracut_install ${install_items[@]} - echo "$kernel_cmdline" >> "${initdir}/etc/cmdline.d/01-default.conf" + [[ $kernel_cmdline ]] && echo "$kernel_cmdline" >> "${initdir}/etc/cmdline.d/01-default.conf" while pop fstab_lines line; do echo "$line 0 0" >> "${initdir}/etc/fstab" |