patched nfs boot scripts
configs/boot/nfs-server.rcS: made the partition size correct --HG-- extra : convert_revision : 4e9bdbe3e465aea2a914fd928b47296031c2523b
This commit is contained in:
parent
f63dd31f4e
commit
a89398e262
1 changed files with 3 additions and 4 deletions
|
@ -47,14 +47,13 @@ echo "/nfs 10.0.0.0/255.0.0.0(rw,sync,no_root_squash)" > /etc/exports
|
||||||
/sbin/insmod /modules/scsi_debug.ko dev_size_mb=128
|
/sbin/insmod /modules/scsi_debug.ko dev_size_mb=128
|
||||||
|
|
||||||
echo -n "creating partition and formatting..."
|
echo -n "creating partition and formatting..."
|
||||||
echo "1,126,L" > /tmp/sfdisk.run
|
echo "1,120,L" > /tmp/sfdisk.run
|
||||||
echo ";" >> /tmp/sfdisk.run
|
/usr/sbin/sfdisk -uM --force /dev/sda < /tmp/sfdisk.run
|
||||||
echo ";" >> /tmp/sfdisk.run
|
|
||||||
/usr/sbin/sfdisk --force /dev/sda < /tmp/sfdisk.run
|
|
||||||
/sbin/mke2fs /dev/sda1
|
/sbin/mke2fs /dev/sda1
|
||||||
mkdir /nfs
|
mkdir /nfs
|
||||||
/bin/mount /dev/sda1 /nfs
|
/bin/mount /dev/sda1 /nfs
|
||||||
chmod a+rwx /nfs
|
chmod a+rwx /nfs
|
||||||
|
/usr/sbin/sfdisk -uM -l /dev/sda
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "starting nfs kernel server..."
|
echo -n "starting nfs kernel server..."
|
||||||
|
|
Loading…
Reference in a new issue