diff options
author | Sven Gothel <[email protected]> | 2013-06-04 19:37:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-04 19:37:29 +0200 |
commit | 29391e7aedaa17779069305872dd3196c929f65f (patch) | |
tree | 248c40a882b94641bcba39176b0e2b448d914731 /server/setup/01-zfs_linux_bringup/zfs04-system-populate.sh | |
parent | 4f170e86e6e650df9a20166b18ebc7729d14ca47 (diff) |
rename folder dirs w/ numeric prefix, indicating order of steps to perform.
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/ + |