AW: fai-make-nfsroot
Christian Meyer
c2h5oh at web.de
Mon Apr 13 22:11:12 CEST 2015
Hello Thomas,
Am Donnerstag, den 26.03.2015, 17:55 +0100 schrieb Thomas Lange:
> >>>>> On Thu, 26 Mar 2015 16:36:23 +0100, Werner.Pommerer at uni-hohenheim.de said:
>
> > http://paste.debian.net/hidden/a7354e4b
> You are mixing jessie and wheezy packages. When calling debootstrap
> (line 4) you are using jessie, but later you are using packages from
> wheezy. This will cause problems.
>
> Please do not mix repositories.
reading this mail, I remember that exactly this is what could be
happened to me when I filed the (now closed) debian bugreport (and it
obviously occures not too rare):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777215
So: isn't it possible to "merge" both configuration files (nfsroot.conf
and sources.list) in order to avoid mixing debian versions? This is more
robust against beginners misconfiguration and possibly simplifies life
for more advanced users.
Of course "real merging" isn't possible, but what about
modifying /etc/fai/nfsroot.conf to something like:
DISTRIBUTION=$(cat /etc/fai/apt/sources.list | grep -Em1
'(.debian.|.ubuntu.)' | cut -d\ -f2')
CODENAME=$(cat /etc/fai/apt/sources.list | grep -Eom1 '( squeeze |
wheezy | jessie | trusty | utopic | vivid )')
FAI_DEBOOTSTRAP="$CODENAME $DISTRIBUTION"
(Note: I don't know if a given proxy in /etc/fai/apt/sources.list
behaves well with debootstrap)
When you don't like it: A hint in /etc/fai/nfsroot.conf would be nice.
Many people (now including me) know it, it's just about making FAI more
newbie-friedly.
Thank you
Christian Meyer
More information about the linux-fai
mailing list