Comment 3 for bug 909919

Revision history for this message
cleary (bernard-gray) wrote :

Revisiting this, it turns out it hangs due to the .disk/info file missing, not README.diskdefines as I previously thought:

A more suitable patch might be:

--- scripts/casper-bottom/41apt_cdrom.orig 2011-12-30 09:38:20.033197874 +1100
+++ scripts/casper-bottom/41apt_cdrom 2011-12-30 09:43:53.733197834 +1100
@@ -18,6 +18,10 @@ esac

 . /scripts/casper-functions

+if [ ! -s /.disk/info]; then
+ exit 0
+fi
+
 mount -n -o bind /sys /root/sys
 mount -n -o bind /proc /root/proc
 mount -n -o bind /dev /root/dev