Browse Source

Keeping $main::oldroot.

master
freesource 24 years ago
parent
commit
0782a0e861
  1. 10
      BootRoot/Yard.pm

10
BootRoot/Yard.pm

@ -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…
Cancel
Save