#1064442 fai-client - Unable to disable mkramdisk

#1064442#5
Date:
2024-02-22 08:30:17 UTC
From:
To:
It is impossible to disable the use of mkramdisk.  By default this tries
to setup a tmpfs for /var/lib/dpkg and does scary copy operations.

It expects an environment variable from the outside, which can never be
empty.

Bastian

#1064442#10
Date:
2024-02-22 10:17:40 UTC
From:
To:
The problem is:

| : ${FAI_RAMDISKS:="$target/var/lib/dpkg"}

:= sets the variable if it is unset _or empty_.  So just defining
FAI_RAMDISKS="" does not work.

The definition of this variable needs to be moved up one tool into fai
itself, so it can provide an empty value.

Bastian

#1064442#15
Date:
2024-02-23 13:53:58 UTC
From:
To:
This is the very easy fix:

 # set default dirs if FAI_RAMDISKS not already set
-: ${FAI_RAMDISKS:="$target/var/lib/dpkg"}
+: ${FAI_RAMDISKS="$target/var/lib/dpkg"}


@wwaldi: Do you think it's still wrong?

#1064442#20
Date:
2024-02-23 15:09:29 UTC
From:
To:
I don't know that syntax.  A proper solution would be to move
FAI_RAMDISKS into fai (so it can be set in the variable fileS) and
always use parameters to mkramdisk.

Bastian

#1064442#25
Date:
2024-02-23 19:20:54 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
fai, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1064442@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Lange <lange@debian.org> (supplier of updated fai package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 23 Feb 2024 19:31:45 +0100
Source: fai
Architecture: source
Version: 6.2.1
Distribution: unstable
Urgency: low
Maintainer: Thomas Lange <lange@debian.org>
Changed-By: Thomas Lange <lange@debian.org>
Closes: 1063146 1064439 1064441 1064442
Changes:
 fai (6.2.1) unstable; urgency=low
 .
   * set default value for FAI_RAMDISKS in fai, Closes: #1064442
   * remove unused script check-cross-arch, no not use qemu-debootstrap,
     Closes: #1064441, #1064439
   * fai-disk-inifo: make sure functions are defined, closes: #1063146
   * install_packages: check apt-cache instead of .bin file
   * Init.pm: do not match all md devices, LVM on RAID now works again
   * setup-storage: add option -p
   * fai-make-nfsroot: add dracut module network, make sure functions are
     defined for remote login
   * subroutines: remove unused code for starting rsyslogd
   * fix multiple tests
   * GRUB_EFI/10-setup: force setting target architecture
     so fai-diskimage also works in a non-efi environment
   * package_config/DEBIAN: remove package eject
Checksums-Sha1:
 d3d082f5af6ec24241c2230db48ccd64183ecdbc 2070 fai_6.2.1.dsc
 2d4aa82fdf652e1769fe301dbf54b8b11897b322 299412 fai_6.2.1.tar.xz
 5bf667919c1ee943b558bdcd1684f683adcca5e0 16867 fai_6.2.1_amd64.buildinfo
Checksums-Sha256:
 7beaa03daab64bff07d8ce70cb686e8fd5fd15dc6da877a9ff55370af3dbfe0e 2070 fai_6.2.1.dsc
 294d1363dcd275c2a59b787cf29c8517958054df8238c135c73c975df60c6e4a 299412 fai_6.2.1.tar.xz
 87e0f968594968269aa90407e673ec4f7655ab0fab3b86943ce58aedc81f02d6 16867 fai_6.2.1_amd64.buildinfo
Files:
 fa2334f3c34349a58816fec865006e30 2070 admin optional fai_6.2.1.dsc
 f6fc09617415ae5e9476a73a5f89c88e 299412 admin optional fai_6.2.1.tar.xz
 120629eafc499483a32501e2d711b4bc 16867 admin optional fai_6.2.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAvFiEEsR7jJz9rLetSjJPaK/jZ/gdLzeQFAmXY5O4RHGxhbmdlQGRl
Ymlhbi5vcmcACgkQK/jZ/gdLzeQdRg//Zlktv/+6oic3ToqLIqUi2zhi5FAxK+dW
EtkEz9c3w7evr48AsUUvoZb8MaHsJWytSv7zD/aX2Uuzt59XoYpi4UOCuCJh/Cxc
ymrUyXrBPWhJxGz7a+jRHd3mOc0sV+Z7sIPRfFXBOqv0PK130Om4gPdpxmFVk7fD
q6mxdKWO9Gyi2klP0r4WznplsDkXAR8EVyK6GXTfuwnPNzh830tDSCoHJz93uCdV
MtQY3kmCiBTobcL8wedV5G/BAwBlBuaHUPzjOpSE0QuKRD4yt45oyCWb90qW31wN
TnoLM1Skj5mQouMP8v6NK1CSOk2IPugjIISpIgB6JhscU5iNfqF6Rnc1qpeD/mwF
NN7T0bKrKK03XyAbzbxlQxNhjlnkRd9O9h+nhsOB7rLurVCvLmI1bkrvf0+7BGeT
1MHQj0ee0KM1isqoBfYSFrF4iotIk5DWZi8rXigxmt4R1j59JY18sFwptVfqdBeR
d9JTiOhZac9XcntOcv0crpDOoglzLjORIZ5lQ2KsOJBKhoKe4U2/IIcwuSlFkQC7
LBqcTeOC68Kn+xr9DnKsE+auO6X+qgyThzSIyQBhQV76ZYaT3AT7YyeLGNHW7jaN
oDY5576uv3bKicTJsCmvXu12OvIu/MZW2oEFTYmctCKeV7x3ohctC75hztMWmAMR
rtF/44xQHgE=
=YQ+v
-----END PGP SIGNATURE-----