summaryrefslogtreecommitdiffstats
path: root/rescue/tree
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-11-06 17:08:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-11-06 17:08:11 +0000
commit344843b4bf93af1f53bfc08bd7d97bc9d31af9d7 (patch)
treeb7ffc6f15bed87b892e0db605fc7bec8111277fd /rescue/tree
parent6908cd93e661b2838afcc2fd8823906acaae731e (diff)
downloaddrakx-344843b4bf93af1f53bfc08bd7d97bc9d31af9d7.tar
drakx-344843b4bf93af1f53bfc08bd7d97bc9d31af9d7.tar.gz
drakx-344843b4bf93af1f53bfc08bd7d97bc9d31af9d7.tar.bz2
drakx-344843b4bf93af1f53bfc08bd7d97bc9d31af9d7.tar.xz
drakx-344843b4bf93af1f53bfc08bd7d97bc9d31af9d7.zip
*** empty log message ***
Diffstat (limited to 'rescue/tree')
-rwxr-xr-xrescue/tree/etc/oem12
1 files changed, 6 insertions, 6 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index fc85a3de7..2a984c52e 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -41,13 +41,11 @@ echo "Formatting $hd$inst partition" ; mkfs.ext2 $hd$inst
echo "Formatting $hd$root partition" ; mkfs.ext2 $hd$root
echo "Mounting partitions"
-mkdir /hd ; mount -t ext2 $hd$inst /hd
-mkdir /mnt; mount -t ext2 $hd$root /mnt
+mkdir -p /hd ; mount -t ext2 $hd$inst /hd
+mkdir -p /mnt; mount -t ext2 $hd$root /mnt
echo "Copying installation on hard drive"
-mkdir /hd/Mandrake
-cp -a /boot /cdrom/boot /hd
-cp -a /cdrom/Mandrake /hd/Mandrake
+cp -a /boot /cdrom/boot /cdrom/Mandrake /hd
echo "Installing packages"
export DURING_INSTALL=1
@@ -56,9 +54,11 @@ export SECURE_LEVEL=2
for i in /var/lib/rpm /proc ; do mkdir -p /mnt$i; done
mount -t proc proc /mnt/proc
rpm --root /mnt --initdb
+touch /mnt/etc/fstab
for i in `perl -pe 's/ .*//' /cdrom/Mandrake/base/depslist.ordered`; do
- [ -e $i.*.rpm ] && rpm --root /mnt -ivh /cdrom/RPMS/$i.*.rpm --nodeps --force
+ [ -e /cdrom/RPMS/$i.*.rpm ] && rpm --root /mnt -ivh /cdrom/RPMS/$i.*.rpm --nodeps --force
done
+umount /mnt/proc
echo
echo "Done. OEM hard drive ready!"