Browse Source

Differentiated between "lost" and readonly boot media

Boot media can become "lost" when it is not recognized as USB 2.0
during early boot (due to missing modules), and is recognized as
such later, in which case, e.g., /dev/sdb disappears and is replaced
with /dev/sdc, while /mnt/boot is still reported as a mountpoint
with a non-existing /dev/block/major:minor device.

This is useful for bug reporting.
Maxim Kammerer 12 years ago
parent
commit
0325a254d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/etc/init.d/liberte

+ 2 - 0
src/etc/init.d/liberte

@@ -72,6 +72,8 @@ start() {
             mount -o remount,rw ${boot} && /usr/bin/test -w ${boot}
             mediaro=$?
             eend ${mediaro}
+        elif [ ! -e ${mediadev} ]; then
+            ewarn Boot media device lost, not remounting
         else
             ewarn Boot media is read-only, not remounting
         fi