overlay: Add overlay for petitboot image
authorJeremy Kerr <jk@ozlabs.org>
Tue, 7 May 2013 11:26:48 +0000 (19:26 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 16 Jan 2014 08:45:59 +0000 (16:45 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
configs/powerpc_petitboot_defconfig
overlay/etc/inittab [new file with mode: 0644]
overlay/etc/locale [new file with mode: 0644]

index 8470c2f..c6c443b 100644 (file)
@@ -4,6 +4,7 @@ BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
 BR2_GENERATE_LOCALE="en_US.utf8"
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y
 BR2_TARGET_GENERIC_GETTY_PORT="hvc0"
+BR2_ROOTFS_OVERLAY="overlay"
 BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
 BR2_PACKAGE_KEXEC_LITE=y
 BR2_PACKAGE_LINUX_FIRMWARE=y
diff --git a/overlay/etc/inittab b/overlay/etc/inittab
new file mode 100644 (file)
index 0000000..235c835
--- /dev/null
@@ -0,0 +1,34 @@
+# /etc/inittab
+#
+# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
+#
+# Note: BusyBox init doesn't support runlevels.  The runlevels field is
+# completely ignored by BusyBox init. If you want runlevels, use
+# sysvinit.
+#
+# Format for each entry: <id>:<runlevels>:<action>:<process>
+#
+# id        == tty to run on, or empty for /dev/console
+# runlevels == ignored
+# action    == one of sysinit, respawn, askfirst, wait, and once
+# process   == program to run
+
+# Startup the system
+null::sysinit:/bin/mount -t proc proc /proc
+null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
+null::sysinit:/bin/mkdir -p /dev/pts
+null::sysinit:/bin/mkdir -p /dev/shm
+null::sysinit:/bin/mount -a
+null::sysinit:/bin/hostname -F /etc/hostname
+# now run any rc scripts
+null::sysinit:/etc/init.d/rcS
+
+# Stuff to do for the 3-finger salute
+::ctrlaltdel:/sbin/reboot
+
+# Stuff to do before rebooting
+null::shutdown:/etc/init.d/rcK
+null::shutdown:/bin/umount -a -r
+null::shutdown:/sbin/swapoff -a
+
+null::restart:/usr/sbin/kexec-restart
diff --git a/overlay/etc/locale b/overlay/etc/locale
new file mode 100644 (file)
index 0000000..6556836
--- /dev/null
@@ -0,0 +1 @@
+LANG=en_US.utf-8