Replacing variable used in one place only with explicit directory for simplicity.
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 24 Jun 2013 20:03:20 +0000 (22:03 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 24 Jun 2013 20:03:20 +0000 (22:03 +0200)
components/9990-aaa-fixme.sh
components/9990-misc-helpers.sh

index 9696c74..a8fc6e8 100755 (executable)
@@ -13,7 +13,7 @@ LIVE_MEDIA_PATH="live"
 HOSTNAME="host"
 
 mkdir -p "${mountpoint}"
-tried="/tmp/tried"
+mkdir -p /var/lib/live/boot
 
 # Create /etc/mtab for debug purpose and future syncs
 mkdir -p /etc
index 9312381..7cb2762 100755 (executable)
@@ -199,9 +199,9 @@ check_dev ()
        if is_supported_fs ${fstype}
        then
                devuid=$(blkid -o value -s UUID "$devname")
-               [ -n "$devuid" ] && grep -qs "\<$devuid\>" $tried && continue
+               [ -n "$devuid" ] && grep -qs "\<$devuid\>" /var/lib/live/boot/devices-already-tried-to-mount && continue
                mount -t ${fstype} -o ro,noatime "${devname}" ${mountpoint} || continue
-               [ -n "$devuid" ] && echo "$devuid" >> $tried
+               [ -n "$devuid" ] && echo "$devuid" >> /var/lib/live/boot/devices-already-tried-to-mount
 
                if [ -n "${FINDISO}" ]
                then