summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-20 13:08:11 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-20 13:08:52 +0200
commit575733aa251a0f8fc5e14c86f3e18ee000453917 (patch)
tree355d39df93824c4aac58c788a13783b243070941
parent546d5dacf5d680526e3b2ddea757487c938a64c9 (diff)
downloaddracut-575733aa251a0f8fc5e14c86f3e18ee000453917.tar.gz
dracut-575733aa251a0f8fc5e14c86f3e18ee000453917.tar.bz2
dracut-575733aa251a0f8fc5e14c86f3e18ee000453917.zip
add newline to cmdline config files
-rwxr-xr-xmodules.d/90crypt/module-setup.sh1
-rwxr-xr-xmodules.d/90dmraid/module-setup.sh1
-rwxr-xr-xmodules.d/90lvm/module-setup.sh1
-rwxr-xr-xmodules.d/90mdraid/module-setup.sh1
-rwxr-xr-xmodules.d/95rootfs-block/module-setup.sh2
5 files changed, 5 insertions, 1 deletions
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
index 67bc83d6..18583915 100755
--- a/modules.d/90crypt/module-setup.sh
+++ b/modules.d/90crypt/module-setup.sh
@@ -47,6 +47,7 @@ cmdline() {
install() {
cmdline >> "${initdir}/etc/cmdline.d/90crypt.conf"
+ echo >> "${initdir}/etc/cmdline.d/90crypt.conf"
inst_multiple cryptsetup rmdir readlink umount
inst_script "$moddir"/cryptroot-ask.sh /sbin/cryptroot-ask
diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh
index b93db8f7..2d73963a 100755
--- a/modules.d/90dmraid/module-setup.sh
+++ b/modules.d/90dmraid/module-setup.sh
@@ -62,6 +62,7 @@ install() {
local _i
cmdline >> "${initdir}/etc/cmdline.d/90dmraid.conf"
+ echo >> "${initdir}/etc/cmdline.d/90dmraid.conf"
inst_multiple dmraid
inst_multiple -o kpartx
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
index 69250393..2ef9a514 100755
--- a/modules.d/90lvm/module-setup.sh
+++ b/modules.d/90lvm/module-setup.sh
@@ -58,6 +58,7 @@ install() {
[[ "$(lvs --noheadings -o segtype ${line%%/*} 2>/dev/null)" == *thin* ]] && _needthin=1
fi
done >> "${initdir}/etc/cmdline.d/90lvm.conf"
+ echo >> "${initdir}/etc/cmdline.d/90lvm.conf"
inst_rules "$moddir/64-lvm.rules"
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index 2fe4074d..2bedbfd7 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -56,6 +56,7 @@ install() {
inst $(command -v mdadm) /sbin/mdadm
cmdline >> "${initdir}/etc/cmdline.d/90mdraid.conf"
+ echo >> "${initdir}/etc/cmdline.d/90mdraid.conf"
inst_rules 64-md-raid.rules
# remove incremental assembly from stock rules, so they don't shadow
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
index 6654b981..f066a79c 100755
--- a/modules.d/95rootfs-block/module-setup.sh
+++ b/modules.d/95rootfs-block/module-setup.sh
@@ -32,7 +32,7 @@ install() {
fi
if [ -n "$journaldev" ]; then
- echo "root.journaldev=$journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
+ printf "%s\n" "root.journaldev=$journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
fi
done
fi