]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90lvm: do not add newline to cmdline
authorDaniel Molkentin <dmolkentin@suse.com>
Wed, 5 Aug 2020 17:32:35 +0000 (19:32 +0200)
committertblume <Thomas.Blume@suse.com>
Thu, 6 Aug 2020 07:53:55 +0000 (09:53 +0200)
Fixes #862

modules.d/90lvm/module-setup.sh

index 52c803f7c93dbf87c5a55f726d9834aca9c0d6f6..1eeba79d77e44bc94b0e8207275647e7dfaa2034 100755 (executable)
@@ -36,7 +36,7 @@ cmdline() {
         eval $(dmsetup splitname --nameprefixes --noheadings --rows "$dev" 2>/dev/null)
         [[ ${DM_VG_NAME} ]] && [[ ${DM_LV_NAME} ]] || return 1
         if ! [[ ${_activated[${DM_VG_NAME}/${DM_LV_NAME}]} ]]; then
-            printf " rd.lvm.lv=%s\n" "${DM_VG_NAME}/${DM_LV_NAME} "
+            printf " rd.lvm.lv=%s " "${DM_VG_NAME}/${DM_LV_NAME} "
             _activated["${DM_VG_NAME}/${DM_LV_NAME}"]=1
         fi
     done