mirror of https://github.com/tLDP/LDP
Fixed some over-long lines.
This commit is contained in:
parent
52c5ef3603
commit
0881a4eb0a
|
@ -9,7 +9,7 @@
|
|||
# run at restore time to rebuild hard drive x, prior to running
|
||||
# restore.metadata. dev.x is the input file for fdisk.
|
||||
|
||||
# Time-stamp: <2006-04-05 20:36:21 ccurley make.fdisk>
|
||||
# Time-stamp: <2006-04-06 09:20:53 ccurley make.fdisk>
|
||||
|
||||
# Copyright 2001 through the last date of modification Charles Curley
|
||||
# except for the subroutine cut2fmt.
|
||||
|
@ -355,11 +355,13 @@ or die ("Can't open LVM display.\n");
|
|||
$phv = @pv[0];
|
||||
print ("pv $pvname has uid $uid.\n");
|
||||
|
||||
print (MKLVS "echo \"y\\n\" | pvcreate -ff --uuid \"$uid\" --restorefile lvm.cfg/archive/${pvname}_*.vg $phv\n");
|
||||
print (MKLVS "echo \"y\\n\" | pvcreate -ff --uuid \"$uid\"\\\n");
|
||||
print (MKLVS " --restorefile lvm.cfg/archive/${pvname}_*.vg $phv\n");
|
||||
print (MKLVS "vgcfgrestore --file LVM.backs $pvname\n\n");
|
||||
}
|
||||
|
||||
print (MKLVS "# Hideously disty dependent!\nif [ -e /etc/init.d/lvm ] ; then\n /etc/init.d/lvm start\nfi\n\n");
|
||||
print (MKLVS "# Hideously disty dependent!\nif [ -e /etc/init.d/lvm ] ; then\n");
|
||||
print (MKLVS " /etc/init.d/lvm start\nfi\n\n");
|
||||
|
||||
$fstabpid = open (FSTAB, "< /etc/fstab")
|
||||
or die "Couldn't fork: $!\n";
|
||||
|
|
|
@ -36,12 +36,13 @@ fi
|
|||
|
||||
export LVM_SYSTEM_DIR=$(pwd)/lvm.cfg
|
||||
|
||||
echo "y\n" | pvcreate -ff --uuid "CCmw0N-0We2-HzRS-jRZa-FkC7-NxTc-oAfvpX" --restorefile lvm.cfg/archive/VolGroup00_*.vg /dev/hda3
|
||||
echo "y\n" | pvcreate -ff --uuid "CCmw0N-0We2-HzRS-jRZa-FkC7-NxTc-oAfvpX"\
|
||||
--restorefile lvm.cfg/archive/VolGroup00_*.vg /dev/hda3
|
||||
vgcfgrestore --file LVM.backs VolGroup00
|
||||
|
||||
# Hideously disty dependent!
|
||||
if [ -e /etc/init.d/lvm ] ; then
|
||||
/etc/init.d/lvm start
|
||||
/etc/init.d/lvm start
|
||||
fi
|
||||
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue