make -j 10 sometimes fails to mount the resulting ISO9660 filesystem, added more information and a dump of the OS binary to help debug the issue
This commit is contained in:
parent
f98acb7662
commit
0e59aa2cc2
32
Makefile
32
Makefile
|
@ -511,6 +511,19 @@ test/requiring_sudo: ${tests_requiring_sudo:test/%=${bld}/test_pass/sudo_%} ${bl
|
||||||
# check that the fat filesystem can be mounted and has the correct contents
|
# check that the fat filesystem can be mounted and has the correct contents
|
||||||
${bld}/test_pass/sudo_fat12_mount: ${os_filename} ${dep_bytes_fat12_start} ${bld}/check_makefile | ${bld}/mnt_fat12
|
${bld}/test_pass/sudo_fat12_mount: ${os_filename} ${dep_bytes_fat12_start} ${bld}/check_makefile | ${bld}/mnt_fat12
|
||||||
sudo umount ${bld}/mnt_fat12 || true
|
sudo umount ${bld}/mnt_fat12 || true
|
||||||
|
# debug failure to mount the FAT12 filesystem
|
||||||
|
(set -x ;\
|
||||||
|
grep '^' ${bld}/offsets/* ;\
|
||||||
|
(sudo mount -o loop,ro,offset=${bytes_fat12_start} $< ${bld}/mnt_fat12) || true ;\
|
||||||
|
dmesg | tail ;\
|
||||||
|
ls -l ${bld}/mnt_fat12 | (grep os.zip || true) ;\
|
||||||
|
sudo umount ${bld}/mnt_fat12 || true ;\
|
||||||
|
sleep 10 ;\
|
||||||
|
cat ${os_filename} | xz | base64 ;\
|
||||||
|
(sudo mount -o loop,ro,offset=${bytes_fat12_start} $< ${bld}/mnt_fat12) || true ;\
|
||||||
|
sudo umount ${bld}/mnt_fat12 || true ;\
|
||||||
|
) > debug-fat12.log 2>&1
|
||||||
|
cat debug-fat12.log
|
||||||
sudo mount -o loop,ro,offset=${bytes_fat12_start} $< ${bld}/mnt_fat12
|
sudo mount -o loop,ro,offset=${bytes_fat12_start} $< ${bld}/mnt_fat12
|
||||||
ls -l ${bld}/mnt_fat12 | grep os.zip
|
ls -l ${bld}/mnt_fat12 | grep os.zip
|
||||||
sudo umount ${bld}/mnt_fat12
|
sudo umount ${bld}/mnt_fat12
|
||||||
|
@ -518,12 +531,19 @@ ${bld}/test_pass/sudo_fat12_mount: ${os_filename} ${dep_bytes_fat12_start} ${bld
|
||||||
|
|
||||||
${bld}/test_pass/sudo_iso_mount: ${os_filename} ${bld}/check_makefile | ${bld}/mnt_iso
|
${bld}/test_pass/sudo_iso_mount: ${os_filename} ${bld}/check_makefile | ${bld}/mnt_iso
|
||||||
sudo umount ${bld}/mnt_iso || true
|
sudo umount ${bld}/mnt_iso || true
|
||||||
grep '^' ${bld}/offsets/* # debug failure to mount the ISO9660 filesystem
|
# debug failure to mount the ISO9660 filesystem
|
||||||
(sudo mount -o loop,ro $< ${bld}/mnt_iso) || true
|
(set -x ;\
|
||||||
dmesg | tail # debug failure to mount the ISO9660 filesystem
|
grep '^' ${bld}/offsets/* ;\
|
||||||
hexdump -C ${os_filename}
|
(sudo mount -o loop,ro $< ${bld}/mnt_iso) || true ;\
|
||||||
ls -l ${bld}/mnt_iso | grep os.zip
|
dmesg | tail ;\
|
||||||
sudo umount ${bld}/mnt_iso
|
cat ${os_filename} | xz | base64 ;\
|
||||||
|
ls -l ${bld}/mnt_iso | grep os.zip ;\
|
||||||
|
sudo umount ${bld}/mnt_iso || true ;\
|
||||||
|
sleep 11 ;\
|
||||||
|
(sudo mount -o loop,ro $< ${bld}/mnt_iso) || true ;\
|
||||||
|
sudo umount ${bld}/mnt_iso || true ;\
|
||||||
|
) > debug-iso.log 2>&1
|
||||||
|
cat debug-iso.log
|
||||||
sudo mount -o loop,ro $< ${bld}/mnt_iso
|
sudo mount -o loop,ro $< ${bld}/mnt_iso
|
||||||
sudo umount ${bld}/mnt_iso
|
sudo umount ${bld}/mnt_iso
|
||||||
touch $@
|
touch $@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user