diff options
Diffstat (limited to 'hosts/generic1')
-rw-r--r-- | hosts/generic1 | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/hosts/generic1 b/hosts/generic1 index 955bfa3..db283e8 100644 --- a/hosts/generic1 +++ b/hosts/generic1 @@ -2,7 +2,7 @@ # start,size,id,bootable part_script=' - ,+,83,* + 1024,+,83,* ' # fs mp type options dump pass @@ -80,6 +80,25 @@ do_postinst() # Remove packages from APT cache. in_target apt-get clean || return 1 + # Install GRUB. + in_target update-grub + in_target grub-install "${dev}" + + # Configure network interfaces. + cat >"${target}/etc/network/interfaces" <<-EOF + # This file describes the network interfaces available on your system + # and how to activate them. For more information, see interfaces(5). + + # The loopback network interface + auto lo + iface lo inet loopback + + # The primary network interface + auto eth0 + allow-hotplug eth0 + iface eth0 inet dhcp + EOF + # Use temporary configuation SSH key. install -d -o 1000 -g 1000 -m 0700 "${target}/home/user/.ssh" || return 1 cat >"${target}/home/user/.ssh/id_rsa" <<-EOF |