Add Raspbian stages

This commit is contained in:
Serge Schneider
2016-04-11 07:29:41 +01:00
parent 5200b19f9a
commit 99bf2f4d61
77 changed files with 777 additions and 0 deletions

View 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

View 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

View File

@@ -0,0 +1,2 @@
01-hosts.diff
02-persistant-net.diff

9
stage1/02-net-tweaks/00-run.sh Executable file
View 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

View File

@@ -0,0 +1 @@
raspberrypi

View File

@@ -0,0 +1,4 @@
auto lo
iface lo inet loopback
iface eth0 inet dhcp

View File

@@ -0,0 +1,3 @@
# Don't load ipv6 by default
alias net-pf-10 off
#alias ipv6 off