Possible Bug using $FAI_DEBMIRROR

C. V. list-user at backenhoernchen.de
Mon May 16 15:29:01 CEST 2016


Hi,

----- Ursprüngliche Mail -----
> Von: "C. V." <list-user at backenhoernchen.de>
> An: "FAI Mailing list" <linux-fai at uni-koeln.de>
> Gesendet: Sonntag, 15. Mai 2016 22:09:55
> Betreff: Possible Bug using $FAI_DEBMIRROR

> I would appreciate if someone could have a look into it.
> I guess a fix for this would be using a check such as in /usr/lib/fai/subrutines
> at line 570
> (https://github.com/faiproject/fai/blob/master/lib/subroutines#L570) for
> checking if FAI is booted from CD.

I created and testes a patch:

--- /usr/sbin/fai.orig  2016-05-16 14:07:00.788390953 +0200
+++ /usr/sbin/fai       2016-05-16 14:36:24.489885082 +0200
@@ -64,7 +64,7 @@
     [ -n "$cspace" ] && FAI_CONFIG_SRC=$cspace
     unset cspace

-    if [ -d /media/mirror ]; then   # we are booting from fai cd or USB stick
+    if [ -d /lib/live/mount/medium ]; then   # we are booting from fai cd or USB stick
         romountopt=
         FAI_DEBMIRROR="--bind /media/mirror"
         MNTPOINT=/media/mirror

Regards,
CV


More information about the linux-fai mailing list