master
root 7 years ago
parent 68b518e92b
commit 465cecbac8

@ -7,10 +7,10 @@ set -e
parted /dev/sda mklabel msdos parted /dev/sda mklabel msdos
parted /dev/sda mkpart primary 1 440GiB parted /dev/sda mkpart primary 1 440GiB
parted /dev/sda mkpart primary 440GiB 2GiB parted /dev/sda mkpart primary 440GiB 442GiB
parted /dev/sdb mklabel msdos parted /dev/sdb mklabel msdos
parted /dev/sdb mkpart primary 1 440GiB parted /dev/sdb mkpart primary 1 440GiB
parted /dev/sdb mkpart primary 440GiB 2GiB parted /dev/sdb mkpart primary 440GiB 442GiB
echo 'yes' | mdadm -C /dev/md0 -l1 -n2 /dev/sd[ab]1 echo 'yes' | mdadm -C /dev/md0 -l1 -n2 /dev/sd[ab]1
echo 'yes' | mdadm -C /dev/md1 -l1 -n2 /dev/sd[ab]2 echo 'yes' | mdadm -C /dev/md1 -l1 -n2 /dev/sd[ab]2

@ -39,9 +39,13 @@ mount -t proc none "$chroot/proc"
mount -t sysfs none "$chroot/sys" mount -t sysfs none "$chroot/sys"
mount -o bind /dev "$chroot/dev" mount -o bind /dev "$chroot/dev"
cp -a "$chroot/docker.key" \ cd configs
"$chroot/post-debootstrap-installer.sh" \ cp -a * "$chroot"
/mnt/md0/unlocked/ cd ..
cp -a docker.key \
post-debootstrap-installer.sh \
"$chroot"
# set hostname # set hostname
echo "$2" > "$chroot/etc/hostname" echo "$2" > "$chroot/etc/hostname"

Loading…
Cancel
Save