diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2012-01-12 19:36:37 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2012-01-15 11:23:46 +0100 |
commit | 6e06191abda82fa771eeec309cb529c1dad26cef (patch) | |
tree | 926246a398f4a63559e69482adf4f21eff1a66fd /package/base-files/src/init | |
parent | 51a0c4d0d98e758c9e7d4d06f2580d8e92ed3caf (diff) |
mk/image.mk: improve and simplify initramfs generation
Using the kernel tools is a lot better than calling cpio ourselfs, as
this way we can have it create device nodes for us. So no need to reopen
/dev/console and things like that.
While here, fix also initramfs compression (untested), as in my
experience the kernel drops all symbols regarding compression from it's
.config in the first compile phase. Probably one should make the actual
compression algorithm configurable (and ideally depending on what the
kernel supports for the given architecture).
This is a rough hack based on what I'm using in the custom viprinux
build file, so something like this is already running somewhere. ;)
Diffstat (limited to 'package/base-files/src/init')
-rwxr-xr-x | package/base-files/src/init | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/package/base-files/src/init b/package/base-files/src/init index 98d24c834..537a65352 100755 --- a/package/base-files/src/init +++ b/package/base-files/src/init @@ -14,7 +14,6 @@ mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev [ -d /dev/shm ] || mkdir /dev/shm mount -o nosuid,noexec -t tmpfs tmpfs /dev/shm mount -o nosuid,noexec -t devpts devpts /dev/pts -exec 0<>/dev/console >&0 2>&0 echo >/dev/mdev.seq echo "/sbin/mdev" >/proc/sys/kernel/hotplug mdev -s |