Explorar el Código

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 hace 12 años
padre
commit
0325a254d3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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