Curious bug in remounting read-only cdrom mount point
Roberto A. Foglietta
roberto.foglietta at gmail.com
Mon Aug 9 06:06:40 UTC 2021
Hi all,
I found a corious bug in remounting a read-only cdrom mount point in
busybox v1.33.0.
Possibly the bug stays also in previous and later versions.
These are the instructions to reproduce the bug in a easy way:
wget
https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.3.8.tar.gz
tar xzf v0.3.8.tar.gz
cd tinycore-editor-0.3.8
tinycore/provides/tcgetdistro.sh
####### configure your qemu ip addresses ########
ifconfig eth0 | grep "inet "
# inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
echo "
netm=24
myip=10.0.2.15
brip=10.0.2.16
tcip=10.0.2.17
" > make.conf
#################################################
./make.sh qemu-test iso
this command above launch qemu, wait for sshd and open a ssh session in the
console
in ssh: mount -o remount,rw /mnt/sr0; echo $? # error: 32, OK
in qemu: mount -o remount,rw /mnt/sr0; echo $? # error: 32, OK
exit by ssh session, return to the console and do this
ssh root at 10.0.2.17 'mount -o remount,rw /mnt/sr0; echo $?' #0
This command above returns an unexpected exit status: 0 instead of 32.
ssh root at 10.0.2.17 'false; echo $?' # error: 1, OK
This last command is only a counter-proof of the error status.
I hope this helps,
--
Roberto A. Foglietta
+39.349.33.30.697
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20210809/9815a247/attachment.html>
More information about the busybox
mailing list