mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 05:35:26 +00:00
Handle current dracut livedir argument. (#881124)
This commit is contained in:
parent
69ccdc5502
commit
1bb77a5909
@ -83,6 +83,10 @@ ln -sf /dev/null /etc/systemd/system/hwclock-save.service
|
|||||||
|
|
||||||
livedir="LiveOS"
|
livedir="LiveOS"
|
||||||
for arg in \`cat /proc/cmdline\` ; do
|
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
|
if [ "\${arg##live_dir=}" != "\${arg}" ]; then
|
||||||
livedir=\${arg##live_dir=}
|
livedir=\${arg##live_dir=}
|
||||||
return
|
return
|
||||||
|
@ -127,6 +127,10 @@ ln -sf /dev/null /etc/systemd/system/hwclock-save.service
|
|||||||
|
|
||||||
livedir="LiveOS"
|
livedir="LiveOS"
|
||||||
for arg in \`cat /proc/cmdline\` ; do
|
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
|
if [ "\${arg##live_dir=}" != "\${arg}" ]; then
|
||||||
livedir=\${arg##live_dir=}
|
livedir=\${arg##live_dir=}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user