summaryrefslogtreecommitdiffstats
path: root/server/setup/zfs_linux_bringup/zfs04-system-populate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'server/setup/zfs_linux_bringup/zfs04-system-populate.sh')
-rw-r--r--server/setup/zfs_linux_bringup/zfs04-system-populate.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/setup/zfs_linux_bringup/zfs04-system-populate.sh b/server/setup/zfs_linux_bringup/zfs04-system-populate.sh
new file mode 100644
index 0000000..2781d66
--- /dev/null
+++ b/server/setup/zfs_linux_bringup/zfs04-system-populate.sh
@@ -0,0 +1,14 @@
+#! /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
+
+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
+
+mkdir -p /mnt/new/mnt/usbroot
+