Re: get-config-dir: errors from get-config-dir-$method not propagated

2024-06-19 Diskussionsfäden Maximilian Stein
Hi there, Has anybody experienced the same issue before? Best Maximilian Am 21.02.24 um 11:29 schrieb Maximilian Stein: Hi there, I noticed that errors from get-config-dir-$method are not propagated in get-config-dir [1]. This means that while a call to task_error, e.g. in get-config-dir

get-config-dir: errors from get-config-dir-$method not propagated

2024-02-21 Diskussionsfäden Maximilian Stein
Hi there, I noticed that errors from get-config-dir-$method are not propagated in get-config-dir [1]. This means that while a call to task_error, e.g. in get-config-dir-git, causes an error log and save log call, the installation does not stop afterwards but continues: FAI_CONFIG_SRC is

install_packages: check for debian

2024-02-20 Diskussionsfäden Maximilian Stein
Hi there, to decide if it is running on a Debian system, install_packages(8) switched to checking for existence of $FAI_ROOT/var/cache/apt/pkgcache.bin a while ago [1]. Unfortunately, this does not always work in my tests with Bookworm, as the file seems to be deleted and recreated during

fai-savelog: upload logs in chroot jail

2024-02-20 Diskussionsfäden Maximilian Stein
Hi there, Only recently I managed to switch to Debian Bookworm and FAI 6.0.3. So far, on the FAI server side, I used a shell script to validate and restrict the log upload of fai-savelog. In particular, the user `fai` for login on the server has a custom script (fai-shell) as its login

Re: Secure deploy of keys

2022-12-13 Diskussionsfäden Maximilian Stein
Hi all, What's the recommended way to deploy (or re-deploy) security-sensitive objects (just to say one: private ssh key to avoid client warnings when redeploying a server)? One solution that comes to my mind is to generate a local GPG key and then authorize it for using a pass store

Re: LUKS, "no device found"

2022-01-26 Diskussionsfäden Maximilian Stein
If fai stop with an error, you can go to a second tty via "Alt-F2" and type there any command you like to test. Exactly, that's what I had in mind. Bonus: You can of course directly edit the disk config file and retry (and even actually attempt to write your configuration to disk)

Re: LUKS, "no device found"

2022-01-25 Diskussionsfäden Maximilian Stein
   Using config file: /var/lib/fai/config/disk_config/LVM_LUKS_EFI    Executing: wipefs -af /dev/sda1    Executing: wipefs -af /dev/sda2    Executing: vgchange -a y vg1    Executing: wipefs -af /dev/vg1/root    Executing: lvremove -f /dev/vg1/root    Executing: head -c 2047 /dev/urandom | od |

Python Lib for fai-do-scripts(1)

2021-12-17 Diskussionsfäden Maximilian Stein
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 customization scripts such as fcopy(8). More high-level abstractions, e.g. to install systemd units, are planned and will follow