]> rtime.felk.cvut.cz Git - jailhouse-test.git/commitdiff
buildroot: Add start up scripts and autologin scripts.
authorMaxim Baryshnikov <barysmax@fel.cvut.cz>
Tue, 3 May 2016 00:10:23 +0000 (02:10 +0200)
committerMaxim Baryshnikov <barysmax@fel.cvut.cz>
Tue, 3 May 2016 00:10:23 +0000 (02:10 +0200)
buildroot-overlay/etc/inittab [new file with mode: 0644]
buildroot-overlay/etc/profile.d/S21add-jh-to-path.sh [moved from buildroot-overlay/etc/profile.d/add-jh-to-path.sh with 100% similarity, mode: 0755]
buildroot-overlay/etc/profile.d/S22starttask.sh [new file with mode: 0755]
qemu-launch-scripts/start-qemu-amd.sh

diff --git a/buildroot-overlay/etc/inittab b/buildroot-overlay/etc/inittab
new file mode 100644 (file)
index 0000000..4e086e1
--- /dev/null
@@ -0,0 +1,35 @@
+# /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 /
+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
+::sysinit:/etc/init.d/rcS
+
+# Put a getty on the serial port
+#console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
+console::respawn:/bin/login root tty1 </dev/tty1 >/dev/tty1 2>&1
+# Stuff to do for the 3-finger salute
+::ctrlaltdel:/sbin/reboot
+
+# Stuff to do before rebooting
+::shutdown:/etc/init.d/rcK
+::shutdown:/sbin/swapoff -a
+::shutdown:/bin/umount -a -r
diff --git a/buildroot-overlay/etc/profile.d/S22starttask.sh b/buildroot-overlay/etc/profile.d/S22starttask.sh
new file mode 100755 (executable)
index 0000000..948d092
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -e;
+/root/jailhouse-init.sh
+exec /root/fiasco-ferret-bench.sh
index a46a16694ce13477e767659bf5fb8add97b75c15..9a8420bcf96da7d09aa57cf694c61218922ba2f8 100755 (executable)
@@ -17,5 +17,5 @@ qemu-system-x86_64 -machine q35 -m 1G -enable-kvm -smp 4 \
        -cpu host,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+svm,+x2apic \
        -kernel "$KIMG" -append "root=/dev/sda memmap=66M$0x3b000000 nohpet" \
        -drive file="$RFSIMG",format=raw,id=disk,if=none \
-        -device ide-hd,drive=disk -serial stdio        -serial vc \
+        -device ide-hd,drive=disk -serial stdio -serial vc \
         -device intel-hda,addr=1b.0 -device hda-duplex