mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-22 00:23:28 -05:00
Keeping $main::oldroot.
This commit is contained in:
parent
e1fb0a22e1
commit
0782a0e861
@ -2133,7 +2133,11 @@ sub create_fstab {
|
|||||||
print NEWFSTAB <<BLARD;
|
print NEWFSTAB <<BLARD;
|
||||||
# DEVICE MOUNTPOINT TYPE OPTIONS DUMP FSCKORDER
|
# DEVICE MOUNTPOINT TYPE OPTIONS DUMP FSCKORDER
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
## Choose an appropriate root mount.
|
||||||
# /dev/ram0 / ext2 defaults
|
# /dev/ram0 / ext2 defaults
|
||||||
|
#/dev/ubd/0 / ext2 defaults 1 1
|
||||||
|
# If you have this, uncomment it.
|
||||||
|
#devpts /dev/pts devpts mode=0622 0 0
|
||||||
/proc /proc proc defaults
|
/proc /proc proc defaults
|
||||||
# Entries adapted from existing fstab:
|
# Entries adapted from existing fstab:
|
||||||
BLARD
|
BLARD
|
||||||
@ -2160,9 +2164,11 @@ BLARD
|
|||||||
## - Put mountpoint under oldroot
|
## - Put mountpoint under oldroot
|
||||||
$options .= ',noauto' unless $options =~ /\bnoauto\b/;
|
$options .= ',noauto' unless $options =~ /\bnoauto\b/;
|
||||||
if ($mpt eq '/') {
|
if ($mpt eq '/') {
|
||||||
$mpt = "/"; # limitation of mount cmd
|
#$mpt = "/"; # limitation of mount cmd
|
||||||
|
$mpt = $main::oldroot; # limitation of mount cmd
|
||||||
} else {
|
} else {
|
||||||
$mpt = $mpt;
|
#$mpt = $mpt;
|
||||||
|
$mpt = $main::oldroot . $mpt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user