Bug#681579: patch to illustrate/workaround

2012-07-17 Thread John Paul Adrian Glaubitz
Package: live-boot
Version: 3.0~a35-1
Followup-For: Bug #681579

Hi Andreas,

thank you very much for reporting this issue and even coming up
with a patch.

We're using FAI at our department to install our workstations and when
I recently created a new NFS root for installation on our new FAI
server I noticed installations didn't work anymore and I eventually
tracked down the problem to the issue you are describing. I can
therefore confirm this and hope that your patch or a modified
version finds it way into the live-boot package as soon as possible!

In the meantime, I will look into your patch and test it myself,
we're currently stuck to installing Wheezy over an old FAI
server with FAI 3.x.

Regards,

Adrian


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#681579: patch to illustrate/workaround

2012-07-15 Thread Andreas B. Mundt
tags 681579 patch
thanks

Hi,

find below a simple patch (for the debian branch) that illustrates the
problem and solves it for me.  Please review the patch carefully,
there might be better implementations instead of this workaround.

Thanks,

Andi


diff --git a/scripts/boot/overlay.sh b/scripts/boot/overlay.sh
index cb12c4b..2ec9782 100755
--- a/scripts/boot/overlay.sh
+++ b/scripts/boot/overlay.sh
@@ -155,9 +155,15 @@ setup_unionfs ()

# tmpfs file systems
touch /etc/fstab
-   mkdir -p /live
-   mount -t tmpfs tmpfs /live
-   mkdir -p /live/overlay
+   if [ ! -d /live ]
+   then
+   mkdir -p /live
+   mount -t tmpfs tmpfs /live
+   mkdir -p /live/overlay
+   else
+   mkdir -p /live/overlay
+   mount -t tmpfs tmpfs /live/overlay
+   fi

# Looking for persistence devices or files
if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org