36
for type in $types; do
37
if which grub-mount >/dev/null 2>&1 && \
38
grub-mount "$partition" "$tmpmnt" 2>/dev/null; then
37
42
ro_partition "$partition"
38
if mount -o ro -t "$type" "$partition" "$tmpmnt" 2>/dev/null; then
39
linux_mount_boot "$partition" "$tmpmnt"
40
bootpart="${mountboot%% *}"
41
mounted="${mountboot#* }"
43
for test in /usr/lib/linux-boot-probes/mounted/*; do
44
if [ -f "$test" ] && [ -x "$test" ]; then
45
debug "running $test $partition $bootpart $tmpmnt $type"
46
if $test "$partition" "$bootpart" "$tmpmnt" "$type"; then
47
debug "$test succeeded"
48
umount "$tmpmnt/boot" 2>/dev/null || true
49
if ! umount "$tmpmnt"; then
50
warn "failed to umount $tmpmnt"
52
rmdir "$tmpmnt" || true
43
for type in $types; do
44
if mount -o ro -t "$type" "$partition" "$tmpmnt" 2>/dev/null; then
51
if [ "$mounted" ]; then
52
linux_mount_boot "$partition" "$tmpmnt"
53
bootpart="${mountboot%% *}"
54
mounted="${mountboot#* }"
56
for test in /usr/lib/linux-boot-probes/mounted/*; do
57
if [ -f "$test" ] && [ -x "$test" ]; then
58
debug "running $test $partition $bootpart $tmpmnt $type"
59
if $test "$partition" "$bootpart" "$tmpmnt" "$type"; then
60
debug "$test succeeded"
61
umount "$tmpmnt/boot" 2>/dev/null || true
62
if ! umount "$tmpmnt"; then
63
warn "failed to umount $tmpmnt"
65
rmdir "$tmpmnt" || true
58
umount "$tmpmnt/boot" 2>/dev/null || true
59
if ! umount "$tmpmnt"; then
60
warn "failed to umount $tmpmnt"
71
umount "$tmpmnt/boot" 2>/dev/null || true
72
if ! umount "$tmpmnt"; then
73
warn "failed to umount $tmpmnt"
67
77
rmdir "$tmpmnt" || true