PATCH: loading vars for fai-diskimage

Ondrej Jombik jombik at platon.org
Fri May 26 12:24:04 CEST 2017


I noticed when using fai-diskimage: variables from $hostname.var are not
properly loaded.

Variables from $CLASSNAME.var are loaded -- this works OK.

This small patch fixes that.

Thanks,

Ondrej

-------------------------------------------------------------------

--- /usr/sbin/fai-diskimage.ori 2017-05-26 12:16:04.450496169 +0200
+++ /usr/sbin/fai-diskimage     2017-05-26 12:16:16.510828774 +0200
@@ -184,7 +184,7 @@

  trap "cleanup" ERR

-LC_ALL=C fai $renew -u $hname -s $uri -c$classes install $mnt
+LC_ALL=C fai $renew -u $hname -s $uri -c$classes,$hname install $mnt

  # do not umount for debugging purpose
  if [ $debug -eq 1 ]; then

--
Ondrej JOMBIK
Platon Technologies s.r.o., Hlavna 3, Sala SK-92701
+421 903 PLATON - info at platon.org - http://platon.org

Read our latest blog:
http://blog.platon.sk/pokuta-20000-eur/

My current location: Bratislava, Slovakia
My current timezone: +0200 UTC (CEST)
(updated automatically)



More information about the linux-fai-devel mailing list