mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
generate uml rootfs
This commit is contained in:
@@ -12,6 +12,7 @@ Hello world module.
|
||||
#include <linux/kernel.h>
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_INFO(vermagic, "4.9.6 mod_unload ");
|
||||
|
||||
static int myinit(void)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
::sysinit:/bin/mkdir -p /dev/pts
|
||||
::sysinit:/bin/mkdir -p /dev/shm
|
||||
::sysinit:/bin/mount -a
|
||||
::sysinit:/sbin/mdev -s
|
||||
::sysinit:/bin/hostname -F /etc/hostname
|
||||
::sysinit:/etc/init.d/rcS
|
||||
# https://unix.stackexchange.com/questions/299408/how-to-login-automatically-without-typing-root-in-buildroot-x86-64-qemu
|
||||
|
||||
Reference in New Issue
Block a user