Re: RAID + UEFI

2023-09-20 Diskussionsfäden Justin Cattle
P_EFI/10-setup ] ? > How can I fix this error? > Why is the script telling me it uses [sda] for installation bun then > trying [md0]? > > Perhaps some of the envirenment-variables might help, so I list a few: > FAI_VERSION=6.0.5 > disklist='sda sdb ' > > Regards >

Re: RAID + UEFI

2023-09-20 Diskussionsfäden Justin Cattle
Hi, There's probably a few different ways to do this. Here is a fairly generic disk_config example I created last time I was working on FAI. I haven't used the config n a while, but it's should be some inspiration even if it doesn't work for you as it is: $ cat disk_config/FAIBASE_EFI_RAID # de

Re: Launch of new FAI project web site

2023-03-08 Diskussionsfäden Justin Cattle
Nice - It looks good :) Thanks again Thomas for your continued support and stewardship of FAI ! Cheers, Just On Wed, 8 Mar 2023 at 11:22, Thomas Lange wrote: > Hi, > > after more than 13 years, I've launched a new design for the FAI > project web site. It now uses Materialize CSS and will wo

Re: Sysemd in the nfsroot

2022-06-15 Diskussionsfäden Justin Cattle
Hi Thomas, Did you ever have any time to take a look at this, or have any thoughts about it ? Cheers, Just On Tue, 10 May 2022 at 20:45, Justin Cattle wrote: > Hi Thomas, > > > I found a bit of time to take a look. > > I have forked and created a branch with a demo of

Re: Sysemd in the nfsroot

2022-05-10 Diskussionsfäden Justin Cattle
; Currently (using sysv init) the script is started as /etc/init.d/rcS > and starts some other daemons on demand (for e.g. sshd is only started > if FAI_FLAGS includes sshd). How do we do this using systemd? > > > >>>>> On Fri, 6 May 2022 15:02:30 +0100, Justin Catt

Re: Sysemd in the nfsroot

2022-05-06 Diskussionsfäden Justin Cattle
he script is started as /etc/init.d/rcS > and starts some other daemons on demand (for e.g. sshd is only started > if FAI_FLAGS includes sshd). How do we do this using systemd? > > > >>>>> On Fri, 6 May 2022 15:02:30 +0100, Justin Cattle said: > > > Hi, &g

Sysemd in the nfsroot

2022-05-06 Diskussionsfäden Justin Cattle
Hi, I'm just wondering what the current blockers to using systemd in the nfsroot are. Are there some things that simply won't work, or is it more about reducing complexity by only supporting a single init system, or something else ? We work mostly with Ubunto for various reasons, and would be n

Re: booting FAI without PXE, tftp using kexec

2022-04-06 Diskussionsfäden Justin Cattle
Hi Thomas, That's very cool. Thanks for sharing. I guess you are copying the kernel and initrd over manually and putting them in your current working dir ? Cheers, Just On Tue, 5 Apr 2022 at 14:44, Thomas Lange wrote: > Hi all, > > I just installed a machine in a different subnet where I co

Re: Python Lib for fai-do-scripts(1)

2021-12-20 Diskussionsfäden Justin Cattle
That's awesome work, I look forward to trying it out. Cheers, Just On Fri, 17 Dec 2021 at 22:33, Maximilian Stein wrote: > Hi all, > > Today I am very pleased to announce the publication of pyfai [1], a > Python package providing Pythonic wrappers for the most important > commands in FAI cust

Re: Tips for easily creating nfsroot?

2021-08-11 Diskussionsfäden Justin Cattle
We tend to use either custom packages from our internal repos specified in the NFSROOT config, or puppet [ as we leverage that a lot anyway ]. I think packages are probably cleaner for your use case, as it can handle removal of files too, and it's quite simple. Puppet [ or any other infra orchestr

Re: unshare causes breakage in docker

2021-06-21 Diskussionsfäden Justin Cattle
Great - thanks Thomas as always. Cheers, Just On Mon, 21 Jun 2021 at 15:14, Thomas Lange wrote: > >>>>> On Tue, 27 Apr 2021 21:05:37 +0100, Justin Cattle > said: > > > We build FAI images in docker. > Have a look at > > https://bugs.debi

Re: unshare causes breakage in docker

2021-04-28 Diskussionsfäden Justin Cattle
at for sure. What do you think, does that sound reasonable ? Cheers, Just On Wed, 28 Apr 2021 at 07:58, Thomas Lange wrote: > >>>>> On Tue, 27 Apr 2021 21:05:37 +0100, Justin Cattle > said: > > > > Can we somehow make unshare vs chroot an option ? Or,

unshare causes breakage in docker

2021-04-27 Diskussionsfäden Justin Cattle
Hi, We build FAI images in docker. It seems like this change has broken that workflow: commit 5bc6385471b2b8b625c3bbaba76488b3127aebf1 Author: Thomas Lange Date: Thu Sep 24 20:29:08 2020 +0200 Use unshare when calling chroot Bug report : Daemonized processes inside the chroot cause

Re: FAI confused by DHCP on multiple network interfaces

2021-03-18 Diskussionsfäden Justin Cattle
BTW - I would also add that I had to achieve a similar config for grub recently, not syslinux, as I was looking at Secure Boot. An equivalent for that is adding this to the linux command line: BOOTIF=$net_default_mac Cheers, Just On Thu, 18 Mar 2021 at 17:13, Thomas Lange wrote: > FAI 5.10.

Re: FAI confused by DHCP on multiple network interfaces

2021-03-18 Diskussionsfäden Justin Cattle
Hi, I don't think you mentioned if you are using syslinux or not, but if you are, you can put something like this in your pxe config file: ipappend 2 For an entire config might look like this: default buster label buster kernel vmlinuz ipappend 2 append initrd=initrd.img console=ttyS0,115200n

Re: Secure Boot

2021-03-01 Diskussionsfäden Justin Cattle
img } Cheers, Just On Thu, 25 Feb 2021 at 16:05, Justin Cattle wrote: > Hi FAI-ers, > > > Has anyone done any work on using FAI on hardware that has Secure Boot > enabled ? > In particular I'm interested in what you are doing in your nfsroot. > > > Cheers,

Secure Boot

2021-02-25 Diskussionsfäden Justin Cattle
Hi FAI-ers, Has anyone done any work on using FAI on hardware that has Secure Boot enabled ? In particular I'm interested in what you are doing in your nfsroot. Cheers, Just -- Notice: This email is confidential and may contain copyright material of members of the Ocado Group. Opinions an

Breaking change in buster dracut with Juniper switch dhcp

2021-01-12 Diskussionsfäden Justin Cattle
Hi, Just a quick not on something we found recently in case it helps any else. After rebuilding our NFS root using debian buster for initial testing, we found that DHCP within the initrd created by dracut did not work, it just timed out and never got a lease back from the switch [ Juniper Switch

Re: Short circuit dracut?

2019-07-02 Diskussionsfäden Justin Cattle
If you're using PXELINUX to boot, you can use the ipappend option like this in your pxe config: ipappend 2 That will make it add this to the kernel comandline for the device it pxe'd from: BOOTIF= So dracut _should_ only use that interface and ignore the others. If that's not working for you

Re: fai-cd - encryption possibilities

2019-03-23 Diskussionsfäden Justin Cattle
wrote: > >>>>> On Sat, 23 Mar 2019 11:08:59 +, Justin Cattle > said: > > > Is there any way of customising the fai-cd process? [ without > hacking the scripts ] ? > > Does it use FAI hooks at all ? > No, fai-cd is not using hooks. > A simple idea

Re: fai-cd - encryption possibilities

2019-03-23 Diskussionsfäden Justin Cattle
Hi Thomas, Is there any way of customising the fai-cd process? [ without hacking the scripts ] ? Does it use FAI hooks at all ? Or do you have any other ideas ? Cheers, Just On Fri, 22 Mar 2019 at 22:40, Thomas Lange wrote: > setup-storage is not used during the creation of fai-cd. > -- > re

Re: fai-cd - encryption possibilities

2019-03-23 Diskussionsfäden Justin Cattle
No problem, thanks anyway Étienne. Cheers, Just On Sat, 23 Mar 2019 at 08:51, Étienne Mollier wrote: > Good Day All, > > Justin Cattle, on 2019-03-22 : > > Re-reading my email, I don't think I was clear enough. So I > > _think_ you may have mis-understood w

Re: fai-cd - encryption possibilities

2019-03-22 Diskussionsfäden Justin Cattle
forward to any further responses :) Thanks! Cheers, Just On Fri, 22 Mar 2019 at 21:28, Étienne Mollier wrote: > Good Day Just, > > Justin Cattle, on 2019-03-22 : > > Has anyone ever though about or implemented some form of > > encrypted volume within the fai images creat

fai-cd - encryption possibilities

2019-03-22 Diskussionsfäden Justin Cattle
Hi, Has anyone ever though about or implemented some form of encrypted volume within the fai images created using fai-cd ? I'm thinking about some encryption, such that the initramfs or systemd prompts for a password to unlock it. I'm not sure quite how to easy it is to hook into the fai-cd ima

Re: install_packages seems to be excluding a lot of pakcages

2019-03-08 Diskussionsfäden Justin Cattle
e process to a that parses the available packages errors? Or do you think it was just failing silently anyway? Cheers, Just On Fri, 8 Mar 2019 at 11:25, Justin Cattle wrote: > I think I have found the cause, so please don't check anything Thomas. > I'll update with my findi

Re: install_packages seems to be excluding a lot of pakcages

2019-03-08 Diskussionsfäden Justin Cattle
I think I have found the cause, so please don't check anything Thomas. I'll update with my findings soon :) Hopefully you can help me understand the issue I've found. Cheers, Just On Fri, 8 Mar 2019 at 09:02, Justin Cattle wrote: > I've also just tried the latest vers

Re: install_packages seems to be excluding a lot of pakcages

2019-03-08 Diskussionsfäden Justin Cattle
eers, Just On Fri, 8 Mar 2019 at 08:02, Justin Cattle wrote: > Apologies, forgot to add that info. > > FAI 5.3.6 > nfsroot is debian squeeze, and building ubuntu trusty in this case > > > Cheers, > Just > > > On Thu, 7 Mar 2019 at 22:37, Thomas Lange >

Re: install_packages seems to be excluding a lot of pakcages

2019-03-08 Diskussionsfäden Justin Cattle
Apologies, forgot to add that info. FAI 5.3.6 nfsroot is debian squeeze, and building ubuntu trusty in this case Cheers, Just On Thu, 7 Mar 2019 at 22:37, Thomas Lange wrote: > >>>>> On Thu, 7 Mar 2019 21:59:09 +0000, Justin Cattle said: > > > This is a FAI

install_packages seems to be excluding a lot of pakcages

2019-03-07 Diskussionsfäden Justin Cattle
Hi, I'm debugging an odd issue. This is a FAI system that I haven't used for a while, and I'm not 100% how the config has changed if at all. When it get to task instsoft, it fails to include most of the packages from the package_config files. It includes just a few. All the packages are avail

Re: Tip: Run a script after FAI install

2019-01-10 Diskussionsfäden Justin Cattle
Systemd is pretty good at this. Get FAI to install a unit file to run your thing, and add a unit option like ConditionPathExists=/foo/bar or ConditionPathExists=!/foo/bar Then make your thing touch or delete a flag file [ /foo/bar ] if successfully run. There you have it, a service/script that onl

Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden Justin Cattle
pache config files, you also understand the > syntax for podcast feed files. > > So I don't know what to think about netplan & YAML. Haven't made up my > mind whether to hate it or love it. > > On 10/17/18 9:19 AM, Justin Cattle wrote: > > We have quite a lot in

Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden Justin Cattle
We have quite a lot invested in ifupdown - we won't be using netplan for servers on bionic. I know that's not a helpful response, but if you decide not to use netplan you won't be the only people :) Cheers, Just On Wed, 17 Oct 2018 at 15:11, John G Heim wrote: > Well, I pulled a Bart Simpson

Re: Alternatives in package_lists?

2018-04-27 Diskussionsfäden Justin Cattle
This is pretty niche, and requires some logic not directly supported in apt. You could just create a shell script with the logic in FAI, instead of the package_config. Cheers, Just On 27 April 2018 at 08:18, Steffen Grunewald wrote: > On Thu, 2018-04-26 at 21:20:44 +0200, Thomas Lange wrote:

Re: setup-storage fails on blank disk

2018-01-04 Diskussionsfäden Justin Cattle
Hi, Are you 100% sure you tried it on a "fresh" disk that was really clean? It defiantly feels like there is some metadata or something remaining in some blocks on the disk. When FAI fails, are you able check for things like md info, dm info, lvm info and the like? You may have to do some dmset

Re: FAI server on Ubuntu

2017-11-08 Diskussionsfäden Justin Cattle
He have xenial FAI servers, but we had to use a stretch nfsroot. The problem is centred around dractut, which can't be used on xenial properly , due to a hard coding of the "update-initramfs" command in the kernel packages postinst script. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1660

Re: fai 5.3 + debian stretch NFS issues

2017-09-29 Diskussionsfäden Justin Cattle
nfs4 is know not to work with overlayfs, and I think you may be mixing your pxe configs. I'm using a stretch nfs root via nfs3. I have an exports like this: /srv/fai/nfsroot *(async,ro,no_subtree_check,no_root_squash) /srv/fai/config *(async,ro,no_subtree_check,no_root_squash) ..and a pxe append

Re: make nfs root dies on dracut setup in stretch build

2017-06-26 Diskussionsfäden Justin Cattle
It works ok for us using stretch , but we do manually include curl in the NFSROOT config. Cheers, Just On 23 June 2017 at 21:37, Nat Sincheler wrote: > We are trying to build a stretch NFS root. We keep getting this error: > > # > Setting up

Re: HOSTNAME in nfsroot boot is FQDN

2017-06-12 Diskussionsfäden Justin Cattle
Thanks Afif - that's good extra info. Cheers, Just On 9 June 2017 at 04:52, Afif Elghraoui wrote: > I had asked the same question here a few months ago here; I know you got > it figured out already, so I'm just posting the link for reference: > > https://lists.uni-koeln.de/pipermail/linux-fai

Re: HOSTNAME in nfsroot boot is FQDN

2017-06-08 Diskussionsfäden Justin Cattle
Found an old thread on this as well: https://lists.uni-koeln.de/pipermail/linux-fai/2014-April/010368.html I really cant believe Dracut has this - I may create an issue on github, see what they are saying.. Cheers, Just On 8 June 2017 at 21:46, Justin Cattle wrote: > Aha - it is dra

Re: HOSTNAME in nfsroot boot is FQDN

2017-06-08 Diskussionsfäden Justin Cattle
Aha - it is dracut - I've just found this! https://bugzilla.redhat.com/attachment.cgi?id=535417&action=diff Disappointing - hostnames with with a "." aren't even valid are they ? Cheers, Just On 8 June 2017 at 21:43, Justin Cattle wrote: > Thanks for the inpu

Re: HOSTNAME in nfsroot boot is FQDN

2017-06-08 Diskussionsfäden Justin Cattle
nning an older version there. I am also installing ubuntu zesty instead > of xenial but I don't see how that could matter. > > > > On 06/08/2017 04:40 AM, Justin Cattle wrote: > >> Hi, >> >> >> I've been testing migrating to fai 5 from 4. >>

Re: HOSTNAME in nfsroot boot is FQDN

2017-06-08 Diskussionsfäden Justin Cattle
Actually, I just found that HOSTNAME is not in /tmp/fai/boot.log That is strange, as I can see it's configured on the dhcp server, and the dhcp server hasn't changed. The only change is a FAI 5 nfsroot. Cheers, Just On 8 June 2017 at 10:40, Justin Cattle wrote: > Hi, &g

HOSTNAME in nfsroot boot is FQDN

2017-06-08 Diskussionsfäden Justin Cattle
Hi, I've been testing migrating to fai 5 from 4. I'm currently using fai-5.3.6, on Ubuntu xenial, but with a Debian stretch nfsroot [ due to lack of dracut support in ubuntu ]. When I build a host, the boot all works ok and the build process starts fine. However, the hostname of the instance is