mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-07-24 10:48:12 +00:00
Fix the boot issue for some UOS release.
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
#
|
#
|
||||||
#************************************************************************************
|
#************************************************************************************
|
||||||
|
|
||||||
|
$CAT /proc/cmdline > /ventoy/cmdline
|
||||||
|
$SED 's#live-media=[^ ]*#live-media=/dev/mapper/ventoy#g' -i /ventoy/cmdline
|
||||||
|
|
||||||
if [ -e /init ] && $GREP -q '^mountroot$' /init; then
|
if [ -e /init ] && $GREP -q '^mountroot$' /init; then
|
||||||
echo "Here before mountroot ..." >> $VTLOG
|
echo "Here before mountroot ..." >> $VTLOG
|
||||||
@@ -25,6 +27,8 @@ if [ -e /init ] && $GREP -q '^mountroot$' /init; then
|
|||||||
$SED "/^mountroot$/i\\export LIVEMEDIA=/dev/mapper/ventoy" -i /init
|
$SED "/^mountroot$/i\\export LIVEMEDIA=/dev/mapper/ventoy" -i /init
|
||||||
$SED "/^mountroot$/i\\export LIVE_MEDIA=/dev/mapper/ventoy" -i /init
|
$SED "/^mountroot$/i\\export LIVE_MEDIA=/dev/mapper/ventoy" -i /init
|
||||||
|
|
||||||
|
$SED "/mount *[-]t *proc/a\\mount --bind /ventoy/cmdline /proc/cmdline" -i /init
|
||||||
|
|
||||||
if $GREP -q 'live-media=' /proc/cmdline; then
|
if $GREP -q 'live-media=' /proc/cmdline; then
|
||||||
if [ -f /scripts/casper ] && $GREP -q '^ *LIVEMEDIA=' /scripts/casper; then
|
if [ -f /scripts/casper ] && $GREP -q '^ *LIVEMEDIA=' /scripts/casper; then
|
||||||
$SED "s#^ *LIVEMEDIA=.*#LIVEMEDIA=/dev/mapper/ventoy#" -i /scripts/casper
|
$SED "s#^ *LIVEMEDIA=.*#LIVEMEDIA=/dev/mapper/ventoy#" -i /scripts/casper
|
||||||
|
|||||||
Reference in New Issue
Block a user