Add Raspbian stages
This commit is contained in:
9
stage1/02-net-tweaks/00-patches/01-hosts.diff
Normal file
9
stage1/02-net-tweaks/00-patches/01-hosts.diff
Normal file
@@ -0,0 +1,9 @@
|
||||
Index: jessie-stage1/rootfs/etc/hosts
|
||||
===================================================================
|
||||
--- jessie-stage1.orig/rootfs/etc/hosts
|
||||
+++ jessie-stage1/rootfs/etc/hosts
|
||||
@@ -3,3 +3,4 @@
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
|
||||
+127.0.1.1 raspberrypi
|
13
stage1/02-net-tweaks/00-patches/02-persistant-net.diff
Normal file
13
stage1/02-net-tweaks/00-patches/02-persistant-net.diff
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
===================================================================
|
||||
--- jessie-stage1.orig/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
+++ jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
@@ -22,7 +22,7 @@ IMPORT{cmdline}="net.ifnames"
|
||||
ENV{net.ifnames}=="1", GOTO="persistent_net_generator_end"
|
||||
|
||||
# device name whitelist
|
||||
-KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
|
||||
+KERNEL!="ath*|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
|
||||
GOTO="persistent_net_generator_end"
|
||||
|
||||
# ignore Xen virtual interfaces
|
2
stage1/02-net-tweaks/00-patches/series
Normal file
2
stage1/02-net-tweaks/00-patches/series
Normal file
@@ -0,0 +1,2 @@
|
||||
01-hosts.diff
|
||||
02-persistant-net.diff
|
9
stage1/02-net-tweaks/00-run.sh
Executable file
9
stage1/02-net-tweaks/00-run.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf
|
||||
install -m 644 files/interfaces ${ROOTFS_DIR}/etc/network/interfaces
|
||||
install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname
|
||||
|
||||
on_chroot sh -e - << EOF
|
||||
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
EOF
|
1
stage1/02-net-tweaks/files/hostname
Normal file
1
stage1/02-net-tweaks/files/hostname
Normal file
@@ -0,0 +1 @@
|
||||
raspberrypi
|
4
stage1/02-net-tweaks/files/interfaces
Normal file
4
stage1/02-net-tweaks/files/interfaces
Normal file
@@ -0,0 +1,4 @@
|
||||
auto lo
|
||||
|
||||
iface lo inet loopback
|
||||
iface eth0 inet dhcp
|
3
stage1/02-net-tweaks/files/ipv6.conf
Normal file
3
stage1/02-net-tweaks/files/ipv6.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# Don't load ipv6 by default
|
||||
alias net-pf-10 off
|
||||
#alias ipv6 off
|
Reference in New Issue
Block a user