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:
Justin Cormack 2016-11-28 12:17:23 +00:00
parent 77a8378e62
commit 0a4b71edbe
2 changed files with 1 additions and 6 deletions

View File

@ -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 && \

View File

@ -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
}