Re: Installing metapackage with fai.me

2023-11-30 Diskussionsfäden Jean-Mathieu Chantrein
> 
> Thanks a lot to Jean-Mathieu for suggesting this feature.
> 

What a responsiveness!
Thank you Thomas for all the work you've put into this project over the years. 
How can we thank you other than by email?
Thanks also to all the contributors and the community.

Regards.

--
Jean-Mathieu


Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Jean-Mathieu Chantrein


> Yes, you are right -norec does not install recommends. We have
> PACKAGES install but in FAI.me it's currently hardcoded to use install-norec.
> 
>> Is there a way to change this default behaviour in fai.me?
> Currently not, but I will think about implementing it. Seems like a
> nice feature to me. Another checkbox should do the job.
> 
> I may change the FAI.me behaviour globally for some tests, maybe this
> evening or tomorrow.

That'll be great, thank you very much.

FYI, I'm doing a postinstall script that only removes certain packages that I 
don't want and that are provided via the metapackage.
The checkbox is a good idea, but it globalizes the recommended packages for all 
packages, and the current default behaviour also has good reasons to be in 
place.
If there is a mechanism for parsing packages "to be installed", a bit of 
"syntactic sugar" could refine the installation mechanism, like:

package-name: install in no-rec mode
package-name+: include recommended packages by package-name
package-name- : exclude package-name from the installation (syntax used by apt)

Along the same lines, we could also add a wilcard (perhaps this is already the 
case ...):
package-name* : installs all packages starting with package-name in no-rec mode 
(syntax used by apt)
package-name*+: installs all packages starting with package-name in recommended 
mode

I'm not aware of the complexity of implementing such a solution, but it was 
just a proposal that seemed interesting in terms of functionality ...

Best regards.

--
Jean-Mathieu


> --
> viele Grüße Thomas


Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Jean-Mathieu Chantrein
Yes, it's games-finest. Thank you.

apt-cache show games-finest
Package: games-finest
Source: debian-games
Version: 5
Installed-Size: 21
Maintainer: Debian Games Team 
Architecture: all
Depends: games-tasks (= 5)
Recommends: 0ad, 7kaa, a7xpg, abe, ace-of-penguins, alex4, armagetronad, asc, 
atomix, bastet, berusky, biniax2, blobby, bloboats, blobwars, blockattack, 
bsdgames, btanks, burgerspace, bzflag-client, caveexpress, cgoban, 
chromium-bsu, cultivation, dreamchess, empire, enigma, epiphany, 
extremetuxracer, flare-game, flightgear, foobillardplus, freeciv, freecol, 
freedroidrpg, freeorion, frozen-bubble, funnyboat, gnubg, gtkatlantic, gweled, 
hedgewars, holotz-castle, hyperrogue, kobodeluxe, koules, lbreakout2, 
lincity-ng, liquidwar, lmemory, lugaru, manaplus, marsshooter, megaglest, 
micropolis, minetest, nethack-console, nettoe, neverball, neverputt, nexuiz, 
numptyphysics, open-invaders, openarena, openclonk, openttd, pacman, parsec47, 
pathological, performous, pinball, pingus, pioneers, pokerth, powermanga, 
pybik, raincat, redeclipse, ri-li, scorched3d, searchandrescue, sgt-puzzles, 
solarwolf, sopwith, springlobby, supertransball2, supertux, supertuxkart, 
tecnoballz, teeworlds, torcs, torus-trooper, tuxfootball, tuxmath, tuxpuck, 
ufoai, unknown-horizons, warmux, warzone2100, wesnoth, widelands, xmoto
Suggests: funguloids, pysolfc
[...]

So, I think that underlying packages are not installed because they are in 
Recommends.
In fact, in the FAI conf files, the package appears like this:

PACKAGES install-norec
games-finest

Is there a way to change this default behaviour in fai.me?

Regards.

-- 
Jean-Mathieu

- Mail original -
> De: "Dirk Geschke" 
> À: "fully automatic installation for Linux" 
> Envoyé: Mercredi 29 Novembre 2023 08:56:40
> Objet: Re: Installing metapackage with fai.me

> Hi Thomas,
> 
>> no there's not limit on the size, but games-finest is not a package
>> name:
>> 
>> $ apt show game-finest
> 
> there is an 's' missing, it's games-finest:
> 
>   $ apt show games-finest
>   Package: games-finest
>   Version: 5
>   Priority: optional
>   Section: metapackages
>   Source: debian-games
>   ...
> 
> Looks like an interesting package for gaming...
> 
> Best regards
> 
> Dirk
> 
> --
> +--+
>| Dr. Dirk Geschke   / Plankensteinweg 61/ 85435 Erding|
>| Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
>| d...@geschke-online.de / d...@lug-erding.de  / kont...@lug-erding.de |
> +--+


Installing metapackage with fai.me

2023-11-28 Diskussionsfäden Jean-Mathieu Chantrein
Hello,

When I want to make an iso on fai.me using metapackages like games-finest or 
junior-tasks, the underlying packages are not present in the iso and are 
therefore not installed.
Are there any limitations to the use of these packages in fai.me (perhaps a 
limitation on the size of the generated iso?) or am I missing something?

Regards.

-- 
Jean-Mathieu


Re: FAI 5.10.3, feature added to FAIme service

2021-05-25 Diskussionsfäden Jean-mathieu CHANTREIN
Hi Thomas,

Thanks for your work. This new feature of FAIme is particularly appreciated.

Best regards,

-- 
Jean-Mathieu

- Mail original -
> De: "Thomas Lange" 
> À: "linux-fai" 
> Envoyé: Lundi 24 Mai 2021 13:40:27
> Objet: FAI 5.10.3, feature added to FAIme service

> Hi all,
> 
> I've released FAI 5.10.3, including a minor fix which only affects
> raid setup in virtual environments. See #988987 for more info.
> 
> 
> The FAIme service was extended. I've added the feature to upload a
> custom shell script, which is added to the installation ISO and gets
> executed during boot on request.
> 
> --
> regards Thomas


Re: Fai.me support for i386 and lxqt desktop

2020-10-22 Diskussionsfäden Jean-mathieu CHANTREIN
Yes it's working fine now.
Thank you very much for your responsiveness.

Best regards,

Jean-Mathieu

- Mail original -
> De: "Thomas Lange" 
> À: "linux-fai" 
> Envoyé: Jeudi 22 Octobre 2020 21:04:13
> Objet: Re: Fai.me support for i386 and lxqt desktop

> I've now added the lxqt desktop to the FAI.me service.
> 
> --
> regards Thomas


Re: Fai.me support for i386 and lxqt desktop

2020-10-22 Diskussionsfäden Jean-mathieu CHANTREIN
Hi Juri,

> I have downloaded this ISO and in
> /var/lib/fai/config/package_config/FAIME I have found:
> 
> PACKAGES install-norec
> task-lxqt-desktop
> PACKAGES install
> task-french
> 
> I think, that the problem is, in contrast to task-french task-lxqt-desktop 
> would
> be installed
> without recommends.

Yes, you're right! I change this setting to install task-lxqt-desktop in 
"install" mode in my fai-server and the generated iso working fine.
Also, I'm looking in /var/lib/fai/config/package_config/DEBIAN of fai.me server 
config and all desktop package(GNOME,LXDE,...) are install in "install" mode 
and not in "install-norec" mode. So, just put task-lxqt-desktop package in 
additional package on fai.me does not allow a functional installation of the 
lxqt graphical environment.

Thanks for your help.

Best regards,

Jean-Mathieu


Re: Fai.me support for i386 and lxqt desktop

2020-10-22 Diskussionsfäden Jean-mathieu CHANTREIN
Hi Thomas,

> 
> Did you already compared the list of packages that are installed at
> the end of the different installations?
> 

I take 2 iso of fai.me:
(1) No additional package and install task-lxqt-desktop by hand after the first 
install --> working fine
(2) Additional package task-lxqt-desktop directly in fai.me --> no icons in GUI

I use dpkg --get-selections and the config (1) have much more packet than (2). 
You can see the list of additional package for config (1) in diff.txt.
Package of config (2) are in failed_config.txt and package of config (1) are in 
success_config.txt.

About package with lxqt in name package, here is the diff:

grep -i lxqt diff.txt 
liblxqt-l10ninstall
lxqt-about-l10n install
lxqt-admin-l10n install
lxqt-config-l10ninstall
lxqt-globalkeys-l10ninstall
lxqt-notificationd-l10n install
lxqt-openssh-askpass-l10n   install
lxqt-panel-l10n install
lxqt-policykit-l10n install
lxqt-powermanagement-l10n   install
lxqt-runner-l10ninstall
lxqt-session-l10n   install
lxqt-sudo-l10n  install
lxqt-themes install

Adding lxqt-themes and task-lxqt-desktop in fai.me doesn't correct the problem.

Regards,

Jean-Mathieu

package_selections.tar.gz
Description: application/compressed-tar


Re: Fai.me support for i386 and lxqt desktop

2020-10-21 Diskussionsfäden Jean-mathieu CHANTREIN
Hello Thomas,

Thanks for this information 

> The package name for installing the lxqt desktop is task-lxqt-desktop, not
> lxqt-desktop.

I tried in plain text consol (no x11) mode and just putting the package 
task-lxqt-desktop, unfortunately there is a configuration problem (no icon is 
displayed in the interface).
I tried again by creating the iso myself on my own FAI server (very great 
feature by the way), but it didn't change anything.
It's curious, because:
- if i just take a netinstall and install, after basic install, the 
task-lxqt-desktop package by hand, it works fine.
- if I start from an iso of fai.me, without additional package and I install, 
after basic installation, the package task-lxqt-desktop by hand, that also 
works well

When that doesn't work, here is the content of the error.log file for the iso 
whose creation logs are here and appear correct: 
https://images.fai-project.org/files/fai-mirror-7WW26OC6.log . The installation 
logs on the client don't show any related errors either.

I didn't take the time to dig more than that, but it seems that FAI "overloads" 
a typical installation of the task-lxqt-desktop package ...

If anyone has ever had this type of problem ...

Link to the problematic iso: 
https://images.fai-project.org/files/faime-7WW26OC6.iso

Best regards,

Jean-Mathieu


Re: Fai.me support for i386 and lxqt desktop

2020-10-19 Diskussionsfäden Jean-mathieu CHANTREIN
Hello,


> 
>> Can fai.me provide iso for 32 bit processors ?
> Currently fai.me does not provide it, but the tools behind this
> service can create cross-architectur images. If you set up your own
> FAI install server you can build your own 32bit ISO image.
>

Yes and it's great.
May be for some small organization (like some school) with no much knowledge 
about linux, this feature would be great. But it's not necessary the first goal 
of fai.me and 32 bits will disappear. 
 
>> Also would it be possible to add the lxqt environment in the desktop choices 
>> ?
> You can easiyl create an ISO image with lxqt environment if you choose
> "Plain text console, no X11" and then add the package lxqt-desktop in
> the web form.

Yes, I forgot this package, so it will be working.
Is there a specific reason for not seeing it in the list of desktop 
environments?

Regards,

Jean-Mathieu


Fai.me support for i386 and lxqt desktop

2020-10-18 Diskussionsfäden Jean-mathieu CHANTREIN
Hello, 

Can fai.me provide iso for 32 bit processors ? 
Also would it be possible to add the lxqt environment in the desktop choices ? 

Best regards, 

Jean-Mathieu 


Re: Fai.me failed minimal install when GUI and non-free are enable

2020-07-15 Diskussionsfäden Jean-mathieu CHANTREIN
- Mail original -
> De: "Thomas Lange" 
> À: "linux-fai" 
> Envoyé: Mardi 14 Juillet 2020 15:45:06
> Objet: Re: Fai.me failed minimal install when GUI and non-free are enable

>>>>>> On Fri, 10 Jul 2020 15:24:53 +0200 (CEST), Jean-mathieu CHANTREIN
>>>>>>  said:
> 
>> I'll try to use fai.me to generate an iso with GUI and some package.
>> After some tests, I think there is a problem with the simultaneous use of
>> non-free and GUI enable (and may be backports enable to).
> 
>> A minimal install with no GUI, non-free and backports enable work.
>> A minimal install with GUI and backports work.
>> But, with a minimal install with GUI, non-free and backports enable, 
> there is a
>> dependancy problem when fai install non-free package (linux-image-amd64:
>> Depends linux-image-5.6.0-0.bpo.2-amd64 [...] but it is not going to be
>> installed)
>> You can see error.log and software.log at 1'20 and 2'28 in this 
> virtualbox
>> record output here:
>> 
> https://drive.google.com/file/d/1M5bYxdHOiw0DerFxNmjwigD8utpPkuuS/view?usp=sharing
>> or reproduce the error with the ISO defined below.
> 
>> Have you ever had this type of problem with fai.me and if so, how did 
> you fix
>> it?
> Salut Jean-mathieu,
> 
> I finally found the strange bug.
> The kernel package from buster backports breaks if the version of the
> wireless-regdb package from stable is installed. This is what happens
> in your config because the Gnome enviroment or the nonfree firmware
> will install wireless-regdb from stable.
> 
> It's very hard to get the correct package list in this special
> situation. Therefore I found a simple fix, which adds wireless-regdb
> into the backports config.
> 
> The technical details are more complicated and not in FAI itself, but
> IMO this workaround is simple and works. A test using a new FAI.me
> image showed no problems now.
> 
> --
> regards Thomas

Hallo Thomas,

Thanks a lot, it's works fine now.

Regards,

Jean-Mathieu


Re: Fai.me failed minimal install when GUI and non-free are enable

2020-07-10 Diskussionsfäden Jean-mathieu CHANTREIN
Hi,

Sorry for that:

>> A minimal install with no GUI, non-free and backports enable work.
> you mean no GUI non non-free backports yes or
> no GUI, but non-free yes and backports yes?

The second: no GUI, non-free enable and backports enable => success install.

> 
>> A minimal install with GUI and backports work.
>> But, with a minimal install with GUI, non-free and backports enable, 
> there is a
>> dependancy problem when fai install non-free package (linux-image-amd64:
>> Depends linux-image-5.6.0-0.bpo.2-amd64 [...] but it is not going to be
>> installed)
> 
> Strange. I can see that non linux-image pacakge is in your mirror.
> I'll dig deeper into this.
> 
> In the past, we did not had backports for the nonfree firmware
> packages for buster. They are now available and I can adjust the
> fai.me configs.

Thanks.


Regards.

Jean-Mathieu

> 
> Sometimes we have dependency problems in fai.me if a newer kernel package
> is available, but linux-image-amd64 still have a dependency on an older
> version.
> 
> --
> regards Thomas


Fai.me failed minimal install when GUI and non-free are enable

2020-07-10 Diskussionsfäden Jean-mathieu CHANTREIN
Hello,

I'll try to use fai.me to generate an iso with GUI and some package. 
After some tests, I think there is a problem with the simultaneous use of 
non-free and GUI enable (and may be backports enable to).

A minimal install with no GUI, non-free and backports enable work.
A minimal install with GUI and backports work.
But, with a minimal install with GUI, non-free and backports enable, there is a 
dependancy problem when fai install non-free package (linux-image-amd64: 
Depends linux-image-5.6.0-0.bpo.2-amd64 [...] but it is not going to be 
installed) 
You can see error.log and software.log at 1'20 and 2'28 in this virtualbox 
record output here: 
https://drive.google.com/file/d/1M5bYxdHOiw0DerFxNmjwigD8utpPkuuS/view?usp=sharing
or reproduce the error with the ISO defined below.

Have you ever had this type of problem with fai.me and if so, how did you fix 
it?

Regards,

Jean-Mathieu

> Your FAI.me job has finished in 87 seconds with success
> Link: https://images.fai-project.org/files/faime-2IQ7KHIO.iso (1.3 GB)
> 
> 
> Your web config is:
> 
> type="install"
> partition="ONE"
> desktop="GNOME"
> suite="buster"
> keyboard="fr"
> addpkgs=""
> rootpw=""
> username="debian"
> userpw="debian"
> github=""
> repo=""
> cmdline=""
> options="BACKPORTS NONFREE"
> 
> 
> If you are interested in more details:
> Your FAI config space:
> https://images.fai-project.org/files/faime-2IQ7KHIO-config.tar.xz
> Your image was created using this command:
> fai-mirror -C /etc/fai-buster-bpo -m1
> -cDEBIAN,DHCPC,DEMO,FAIBASE,BUSTER,ONE,BACKPORTS,NONFREE,GNOME,FAIME,GRUB_PC,GRUB_EFI,AMD64
> /tmp/mirror
> fai-cd -C /etc/fai-buster-bpo -g grub.cfg.install-only -m/tmp/mirror
> faime-2IQ7KHIO.iso
> 
> fai-mirror.log:
> https://images.fai-project.org/files/fai-mirror-2IQ7KHIO.log


[Solved]Re: Failed to load bnx2x firmware

2018-06-12 Diskussionsfäden Jean-mathieu CHANTREIN
Hello Thomas.

Thanks for your answer.

fai-make-nfsroot -fvN seems to make all the works. I don't need to chroot and 
reconfigure dracut: command lsinitrd /boot/initrd.img-4.9.0-6-amd64 |grep bnx 
already show firmware bnx2.

I don't need to copy the new initrd in my tftp directory. I guess the script 
fai-make-nfsroot make the copy itself, md5sum of both of this file 
($NFSROOT/boot/.img-4.9.0-6-amd64
 and $TFTPROOT/initrd.img-4.9.0-6-amd64) are same and date are almost the same.

Nevertheless, I must be add package firmware-bnx2* in 
$FAI_CONDIR_DIR/package_config/SOME_CLASS in order to be able to use network 
card on the final client ;-)

Best regards.

Jean-Mathieu

- Mail original -
> De: "Thomas Lange" 
> À: "linux-fai" 
> Envoyé: Lundi 11 Juin 2018 17:53:38
> Objet: Re: Failed to load bnx2x firmware

>>>>>> On Mon, 11 Jun 2018 17:29:47 +0200 (CEST), Jean-mathieu CHANTREIN
>>>>>>  said:
> 
>> I use fai-make-nfsroot -k -N to install non-free packages defined in the 
> NONFREE
>> section of /etc/fai/NFSROOT.
> 
>> dracut:/# ip link set eth0 up
>> [...] bnx2x :01:00.0: firmware: failed to load 
> bnx2x/bnx2x-e2-7.13.1.0.fw
>> (-2)
>> [...] bnx2x :01:00.0: Direct firmware load for 
> bnx2x/bnx2x-e2-7.13.1.0.fw
>> failed with error -2
>> [...] bnx2x: [bnx2x_func_hw_init:6003(eth0)]Error loading firmware
>> [...] bnx2x: [bnx2x_nic_load:2727(eth0)](eth0)HW init failed, aborting
>> RTNETLINK answers: No such file or directory
> 
> I've create a new nfsroot using fai-make-nfsroot -fvN (without -k) and
> got an initrd inside the nfsroot which contains the bnx2x firmware.
> I think you have to recreate the initrd after adding the packages to
> your nfsroot, which fai-make-nfsroot -kN does not do.
> 
> # chroot /srv/fai/nfsroot bash
> # dpkg-reconfigure dracut
> 
> then check the initrd while being inside the chroot
> # lsinitrd /boot/initrd.img-4.9.0-6-amd64 |grep bnx
> # exit
> 
> 
> Do not forget to copy the new initrd into your tftp directory.
> --
> regards Thomas


Failed to load bnx2x firmware

2018-06-11 Diskussionsfäden Jean-mathieu CHANTREIN
Hello. 

I use fai-make-nfsroot -k -N to install non-free packages defined in the 
NONFREE section of /etc/fai/NFSROOT. 

This section contains: 
PACKAGES install-norec NONFREE 
firmware-bnx2 firmware-bnx2x firmware-realtek 
firmware-misc-nonfree 

But when I install a client with broadcom network interface, I have an error: 

dracut:/# ip link set eth0 up 
[...] bnx2x :01:00.0: firmware: failed to load bnx2x/bnx2x-e2-7.13.1.0.fw 
(-2) 
[...] bnx2x :01:00.0: Direct firmware load for bnx2x/bnx2x-e2-7.13.1.0.fw 
failed with error -2 
[...] bnx2x: [bnx2x_func_hw_init:6003(eth0)]Error loading firmware 
[...] bnx2x: [bnx2x_nic_load:2727(eth0)](eth0)HW init failed, aborting 
RTNETLINK answers: No such file or directory 

I try to add : add_drivers+="bnx2" in /srv/fai/nfsroot/etc/dracut.conf but 
without success. 

Anyone has already encountered a similar problem ? 

Regards. 

Jean-Mathieu 


Re: LOGUSER is undefined

2018-06-04 Diskussionsfäden Jean-mathieu CHANTREIN



- Mail original -
> De: "Thomas Lange" 
> À: "linux-fai" 
> Envoyé: Lundi 4 Juin 2018 12:46:17
> Objet: Re: LOGUSER is undefined

>>>>>> On Mon, 4 Jun 2018 12:34:50 +0200 (CEST), Jean-mathieu CHANTREIN
>>>>>>  said:
> 
>> I haved install fai-server on debian buster. I add to /etc/fai/fai.conf 
> this 2
>> line:
>> LOGUSER=fai
>> FAI_LOGPROTO=ssh
> This sets LOGUSER only for the FAI server. For the clients you have to
> set LOGUSER in a class/*.var file.

Thank you very much, it works well now. 
However, I don't understand why we can have the choice to put a user other than 
the one defined in /etc/fai/fai.conf. Indeed, the remote connection will always 
be done on the user defined in /etc/fai/fai.conf , is it not ?

> 
> 
>> P.S.: I want to propose pull request of the french traduction of 
> fai-guide
>> (http://fai-project.org/fai-guide-fr). I can't see this file on
>> https://github.com/faiproject/fai/tree/master/doc .
>> How I can make pull request on the french traduction of the guide ?
> Currently I do not find the sources of the french traduction. I will
> sent you an email later about this.
> 
>> P.S.2: Is it safe to use fai-server on a debian testing basis for 
> production ?
> This depends on what you expect for your production
> environment. Testing is not the stable release but it's also not
> the unstable release ;-)

:-)

Regards.

Jean-Mathieu


> 
> --
> regards Thomas


LOGUSER is undefined

2018-06-04 Diskussionsfäden Jean-mathieu CHANTREIN
Hello. 

I haved install fai-server on debian buster. I add to /etc/fai/fai.conf this 2 
line: 

LOGUSER=fai 
FAI_LOGPROTO=ssh 

At the end on the fai-setup, I do have : 

fai-make-nfsroot finished properly. 
Log file written to /var/log/fai/fai-make-nfsroot.log 
FAI setup finished. 

And fai user is corectly create. 

I make: 

fai-chboot -IFv -u nfs://IP_FAI_SERVER/srv/fai/config demohost 

Deployment work fine but at the end, I see this message: 

$LOGUSER is undefined. Not saving log files to remote. 

And fai-chboot -d demohost can't be effected. 

I use tty on the temporary client and effectively, they are not LOGUSER 
variable defined in /tmp/fai/variables.log but I do have variable 
FAI_LOGPROTO=ssh . 
I can log to my fai-server from the temporary client with: 

ssh fai@IP_FAI_SERVER 

What I have missing ? 

Regards. 

Jean-Mathieu 

P.S.: I want to propose pull request of the french traduction of fai-guide 
(http://fai-project.org/fai-guide-fr). I can't see this file on 
https://github.com/faiproject/fai/tree/master/doc . 
How I can make pull request on the french traduction of the guide ? 

P.S.2: Is it safe to use fai-server on a debian testing basis for production ?