diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/initrdscripts/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/initrdscripts/files/nfsboot.sh | 10 | ||||
-rw-r--r-- | packages/initrdscripts/initramfs-nfsboot_0.1.bb | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/.mtn2git_empty b/packages/initrdscripts/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initrdscripts/files/.mtn2git_empty diff --git a/packages/initrdscripts/files/nfsboot.sh b/packages/initrdscripts/files/nfsboot.sh new file mode 100644 index 0000000000..bb689fa3b8 --- /dev/null +++ b/packages/initrdscripts/files/nfsboot.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +echo "Starting initramfs boot..." +mkdir /proc +mount -t proc proc /proc +ifconfig eth0 192.168.20.230 +mkdir /mnt +mount -t nfs 192.168.20.210:/home/nfs/Angstrom-opie-image-test-h4000 /mnt +cd /mnt +exec switch_root -c /dev/console /mnt /sbin/init diff --git a/packages/initrdscripts/initramfs-nfsboot_0.1.bb b/packages/initrdscripts/initramfs-nfsboot_0.1.bb new file mode 100644 index 0000000000..1a4d48813b --- /dev/null +++ b/packages/initrdscripts/initramfs-nfsboot_0.1.bb @@ -0,0 +1,8 @@ +SRC_URI = "file://nfsboot.sh" +PR = "r0" + +do_install() { + install -m 0755 ${WORKDIR}/nfsboot.sh ${D}/init +} + +FILES_${PN} += " /init " |