diff options
author | Phil Sutter <phil@nwl.cc> | 2021-10-29 23:30:44 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2021-10-30 17:47:42 +0200 |
commit | 9c7ea14b1c7a0ae00ce4de2075d5cdcf336d6024 (patch) | |
tree | 29fde2c1708f5b87ee3079a801a651fde9e70a71 /mk | |
parent | 1001e63bd8309b58880902e70f65115952b1db04 (diff) |
mk/image.mk: Ship /init in initramfs
OpenADK's kernel hack to call /sbin/init in initramfs is ugly. Instead,
ship /init as a symlink to /sbin/init. This is safe, since initramfs is
always a filesystem with symlink support.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/image.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/image.mk b/mk/image.mk index 72c7cdaa7..dec1bb4e4 100644 --- a/mk/image.mk +++ b/mk/image.mk @@ -184,6 +184,7 @@ ${STAGING_TARGET_DIR}/${INITRAMFS}_list: ${TARGET_DIR}/.adk echo "nod /dev/ttyBF1 0660 0 0 c 204 65"; \ echo "nod /dev/ttyUL0 0660 0 0 c 204 187"; \ echo "nod /dev/ttyUL1 0660 0 0 c 204 188"; \ + echo "slink /init /sbin/init 755 0 0"; \ ) >>$@ ${FW_DIR}/${INITRAMFS}: ${STAGING_TARGET_DIR}/${INITRAMFS}_list |