mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 03:34:58 +00:00
Use the procfs script to mount binfmt
This means our script does not need to do mount. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
77a8378e62
commit
0a4b71edbe
@ -33,6 +33,7 @@ RUN \
|
||||
rc-update add hwdrivers sysinit && \
|
||||
rc-update add rngd && \
|
||||
rc-update add sysfs && \
|
||||
rc-update add procfs && \
|
||||
rc-update add sysfsconf && \
|
||||
rc-update add fsck && \
|
||||
rc-update add crond && \
|
||||
|
@ -5,7 +5,6 @@ description="Configure binfmt misc emulation"
|
||||
start()
|
||||
{
|
||||
ebegin "Configuring binfmt misc"
|
||||
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
|
||||
echo ":qemu-aarch64:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:OC" > /proc/sys/fs/binfmt_misc/register
|
||||
echo ":qemu-alpha:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha-static:OC" > /proc/sys/fs/binfmt_misc/register
|
||||
@ -31,8 +30,3 @@ start()
|
||||
|
||||
eend $? "Failed to configure binfmt_misc"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
umount /proc/sys/fs/binfmt_misc
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user