Merge pull request #797 from justincormack/binfmt-nomount

Use the procfs script to mount binfmt
This commit is contained in:
Justin Cormack 2016-11-28 05:27:00 -08:00 committed by GitHub
commit 34d5b8a939
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
}