[Lunar-commits] <moonbase> syslinux: plugin doesn't find root with systemd.
Auke Kok
sofar at foo-projects.org
Tue Jul 12 02:24:37 CEST 2011
commit 1ce8266dc6d4fadef0f865bb98f99f843e241492
Author: Auke Kok <sofar at foo-projects.org>
Date: Tue Jul 12 02:24:37 2011 +0200
syslinux: plugin doesn't find root with systemd.
This still needs a better and more consistent fix that work throughout
all the plugins in the same way...
---
utils/syslinux/plugin.d/bootloader-syslinux.plugin | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/utils/syslinux/plugin.d/bootloader-syslinux.plugin b/utils/syslinux/plugin.d/bootloader-syslinux.plugin
index 0204104..d584048 100644
--- a/utils/syslinux/plugin.d/bootloader-syslinux.plugin
+++ b/utils/syslinux/plugin.d/bootloader-syslinux.plugin
@@ -40,8 +40,13 @@ plugin_kernel_updatebootloader_syslinux() {
else
BOOTDIR="/boot"
fi
+
# determine what to tell our kernel is the rootfs partition
ROOTPART=$(grep "^/dev/" /etc/mtab | awk '($2 == "/"){print $1}')
+ # fallback, mtab might have /dev/root in there sometimes.
+ if [ "$ROOTPART" == "/dev/root" ]; then
+ ROOTPART=$(sed 's/.*\(root=[^ ]*\).*/\1/g' /proc/cmdline)
+ fi
TMP=$(temp_create)
while read LINE ; do
More information about the Lunar-commits
mailing list