summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-10-19 11:09:38 +0200
committerHarald Hoyer <harald@redhat.com>2012-10-19 11:09:38 +0200
commit636e5cd2d53c8165a0dc5f857af643fd15faea9d (patch)
treebae8c40897666bc59928e1582a31759e70f30598 /dracut.sh
parentf046336c44c1a88508c825744bd2da0aae707e13 (diff)
downloaddracut-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-xdracut.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut.sh b/dracut.sh
index e160641d..aab850e3 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -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"