Handle current dracut livedir argument. (#881124)

This commit is contained in:
Bill Nottingham 2012-12-11 14:28:03 -05:00
parent 69ccdc5502
commit 1bb77a5909
2 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,10 @@ ln -sf /dev/null /etc/systemd/system/hwclock-save.service
livedir="LiveOS"
for arg in \`cat /proc/cmdline\` ; do
if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then
livedir=\${arg##rd.live.dir=}
return
fi
if [ "\${arg##live_dir=}" != "\${arg}" ]; then
livedir=\${arg##live_dir=}
return

View File

@ -127,6 +127,10 @@ ln -sf /dev/null /etc/systemd/system/hwclock-save.service
livedir="LiveOS"
for arg in \`cat /proc/cmdline\` ; do
if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then
livedir=\${arg##rd.live.dir=}
return
fi
if [ "\${arg##live_dir=}" != "\${arg}" ]; then
livedir=\${arg##live_dir=}
return