diff options
Diffstat (limited to 'server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh')
-rw-r--r-- | server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh b/server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh new file mode 100644 index 0000000..ae1b109 --- /dev/null +++ b/server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh @@ -0,0 +1,23 @@ +#! /bin/sh + +apt-get install debootstrap +debootstrap --arch amd64 stable /mnt/new ftp://ftp.de.debian.org/debian/ + +touch /mnt/new/etc/network/interfaces +mv /mnt/new/etc/network/interfaces /mnt/new/etc/network/interfaces.orig +cp -a /etc/network/interfaces /mnt/new/etc/network/interfaces +cp -a /etc/udev/rules.d/70-persistent-net.rules /mnt/new/etc/udev/rules.d/ + +touch /mnt/new/etc/apt/source.list +mv /mnt/new/etc/apt/source.list /mnt/new/etc/apt/source.list.orig +cp -a /etc/apt/sources.list /mnt/new/etc/apt/source.list + +cp -a /etc/default/grub /mnt/new/etc/default/grub + +mkdir -p /mnt/new/mnt/usbroot + +#Optional stuff +#cp -a /root/zfs_linux_bringup /mnt/new/root/ +#cp -a /root/.ssh /mnt/new/root/ +#cp -a /root/.exrc /mnt/new/root/ + |