interestingly this error is handled differently for --import and --install:

# umount /proc/sys/fs/binfmt_misc
# update-binfmts --import llvm-3.1.binfmt
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: 
Invalid argument
update-binfmts: warning: unable to enable binary format llvm-3.1.binfmt
# echo $?
0

# umount /proc/sys/fs/binfmt_misc
# update-binfmts --install jarwrapper /usr/bin/jarwrapper --magic 'PK\x03\x04' 
--detector /usr/bin/jardetector
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: 
Invalid argument
update-binfmts: warning: unable to enable binary format jarwrapper
update-binfmts: exiting due to previous errors
# echo $?
2


Andreas


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to