ganz dummes Frage:
Code: Alles auswählen
#
#!/bin/sh
#
# Exit if anything goes wrong
set -ex
mkdir /mnt/$1
# basic parameters
VG="00"
IMG_PATH="/dev/00/"
MNT="/mnt/$1"
# Create Logocal Volumes for Domain and Swap
lvcreate -v -L$2 -n $1 $VG
lvcreate -v -L$3 -n $1'_swap' $VG
# make Filesystem
mkfs.ext3 $IMG_PATH$1
mkswap $IMG_PATH$1'_swap'
mount $IMG_PATH$1 $MNT
cp -a /mnt/template/* $MNT
/bin/sh /ext/images/scripts/10_hostname $1
Warum?