- May 28, 2021
-
-
Michael Prokop authored
CONFIG_EFI_VARS is no longer available since https://salsa.debian.org/kernel-team/linux/-/commit/20146398c4599147244ed3ffc54f38d07fb8dea3 (tagged initially as debian/5.10.1-1_exp1 + shipped with kernel package 5.10.1-1~exp1 and newer, incl. 5.10.38-1 as present in current Debian/unstable). Therefore the kernel module efivars is no longer available on more recent Debian kernel systems. Quoting from https://wiki.debian.org/UEFI: | The older interface was efivars, showing files under | /sys/firmware/efi/vars, and this is what was used by default in both | Wheezy and Jessie. | | The new interface is efivarfs, which will expose things in a slightly | different format under /sys/firmware/efi/efivars. This is the new | preferred way of using UEFI configuration variables, and Debian switched | to it by default from Stretch onwards. CONFIG_EFI_VARS is no longer required, instead efivarfs seems to be available starting with kernel v3.10 and newer (see linux.git): | commit a9499fa7cd3fd4824a7202d00c766b269fa3bda6 | Author: Tom Gundersen <teg@jklm.no> | Date: Fri Feb 8 15:37:06 2013 +0000 | | efi: split efisubsystem from efivars | | This registers /sys/firmware/efi/{,systab,efivars/} whenever EFI is enabled | and the system is booted with EFI. | | This allows | *) userspace to check for the existence of /sys/firmware/efi as a way | to determine whether or it is running on an EFI system. | *) 'mount -t efivarfs none /sys/firmware/efi/efivars' without manually | loading any modules. | | [ Also, move the efivar API into vars.c and unconditionally compile it. | This allows us to move efivars.c, which now only contains the sysfs | variable code, into the firmware/efi directory. Note that the efivars.c | filename is kept to maintain backwards compatability with the old | efivars.ko module. With this patch it is now possible for efivarfs | to be built without CONFIG_EFI_VARS - Matt ] and: | commit d68772b7c83f4b518be15ae96f4827c8ed02f684 | Author: Matt Fleming <matt.fleming@intel.com> | Date: Fri Feb 8 16:27:24 2013 +0000 | | efivarfs: Move to fs/efivarfs | | Now that efivarfs uses the efivar API, move it out of efivars.c and | into fs/efivarfs where it belongs. This move will eventually allow us | to enable the efivarfs code without having to also enable | CONFIG_EFI_VARS built, and vice versa. | | Furthermore, things like, | | mount -t efivarfs none /sys/firmware/efi/efivars | | will now work if efivarfs is built as a module without requiring the | use of MODULE_ALIAS(), which would have been necessary when the | efivarfs code was part of efivars.c. Thanks to Volodymyr Fedorov + Manuel Montecelo for spotting this
-
- May 21, 2021
-
-
Michael Prokop authored
os-prober is known to cause problems in certain environments, and might cause update-grub in the chroot to hang. The os-proper package is a recommends of the grub-common package, so let's install grub-pc by disabling recommends. As reported on IRC by Paul Menzel.
-
Michael Prokop authored
If `dpkg --print-architecture` isn't available for detecting the current architecture (e.g. on non-Debian), and neither $ARCH is set nor `--arch ...` was specified, abort and inform user about it. Closes: grml/grml-debootstrap#173
-
- Apr 30, 2021
-
-
Michael Prokop authored
This includes recent changes as integrated at https://github.com/sipwise/deployment-iso Makefile: - Fix gcc argument order: newer gcc versions have become more picky on their argument order, due to the --as-needed default, and require the libraries to be linked to, to be passed after the code/objects that use them, otherwise they will get dropped as unused. This change is required for compiling with gcc v10.2.1-6 as present on Debian/bullseye (otherwise fails to execute with `undefined symbol: dlsym`) - Add `make check` target to run some basic tests - Also get rid of *.o *.so files in clean target, adjust targets accordingly to always clean and then build fake-uname.so afterwards - Mark as serial-only via .NOTPARALLEL fake-uname.c: - Use hidden visibility by default, and export the symbol explicitly. - Resolve real_uname() only once. - Return early if the real_uname() fails, to avoid acting on bogus data. - Call dlerror() before dlsym() to clear any previous errors. - Compute the release member size from the utsname struct instead of hard-coding it. - Always NUL-terminate the relese buffer, so protect against very long environment strings. - Make various variables into const. Acked-by:
Guillem Jover <gjover@sipwise.com> Thanks: Guillem Jover
-
- Apr 29, 2021
-
-
Michael Prokop authored
As present in current Debian/unstable
-
- Apr 19, 2021
-
-
Michael Prokop authored
-
- Apr 16, 2021
-
-
Michael Prokop authored
This used to work fine until dosfstools 4.1: | root@grml ~ # mkfs.fat -F32 -n "EFI System Partition" /dev/loop1 | mkfs.fat 4.1 (2017-01-24) | mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows Now with dosfstools >=4.2 it's failing though: | root@grml ~ # mkfs.fat -F32 -n "EFI System Partition" /dev/loop1 | mkfs.fat 4.2 (2021-01-31) | mkfs.fat: Label can be no longer than 11 characters So instead use "EFI" as filesystem label, to not fail with newer dosfstools. Closes: #987014 Closes: grml/grml-debootstrap#168
-
- Jan 22, 2021
-
-
Michael Prokop authored
-
Michael Prokop authored
-
- Jan 20, 2021
-
-
Michael Prokop authored
Fixes: | [ 94.941005] F2FS-fs (sda1): Unrecognized mount option "errors=remount-ro" or missing value | mount: /: mount point not mounted or bad option Closes: grml/grml-debootstrap#163
-
Michael Prokop authored
Thanks: Paul Menzel for bugreport and bugfix Closes: grml/grml-debootstrap#164
-
- Jan 19, 2021
-
-
Michael Prokop authored
This avoids having output like follows in Jenkins console output: | �[32;01m*�[0m grml-debootstrap [0.93] - Please recheck configuration before execution: Closes: grml/grml-debootstrap#159
-
- Dec 24, 2020
-
-
Michael Prokop authored
-
- Dec 23, 2020
-
-
Michael Prokop authored
We want to use Debian/bullseye as default release within the grml-debootstrap version that's going to be shipped with bullseye, so let's be prepared for this. FTR: *not* modifying the Travis CI related configuration files with this change, as the unstable builds on Travis CI are known to be unreliable. Travis CI also seems to be a dead end for us, so it's not worth putting any further efforts into it, at least for the time being.
-
- Dec 12, 2020
-
-
Michael Prokop authored
-
Michael Prokop authored
The packer template worked with packer v1.5.6, but fails with more recent versions like v1.6.5. Fixed via `packer fix debian64.json`, using packer v1.6.5. Thanks: Darshaka Pathirana for reporting Closes: grml/grml-debootstrap#162
-
- Dec 04, 2020
-
-
Michael Prokop authored
If the configuration includes KEEP_SRC_LIST='no', then it behaves as if it's set to 'yes', as we were just checking whether it's set or not. Closes: grml/grml-debootstrap#160
-
- Oct 02, 2020
-
-
Michael Prokop authored
It might be possible that we can load the efivars module, while /sys/firmware/efi still doesn't exist and efibootmgr then fails to execute. We noticed this on Hetzner's Dell PowerEdge™ R6515 DX181 server, which was booted in BIOS mode via PXE, while the hardware itself is EFI capable. Loading the efivars module worked there, but invoking efibootmgr then fails, and the resulting system isn't bootable. Thanks: Darshaka Pathirana for reporting and feedback
-
- Sep 03, 2020
-
-
Michael Prokop authored
Fixes: | mkdir -m 0700 -p "${AUTHORIZED_KEYS_TARGET}" | ^-- SC2174: When used with -p, -m only applies to the deepest directory. Closes: #158
-
- Sep 01, 2020
-
-
Michael Prokop authored
-
- Aug 30, 2020
-
-
Chris Hofstaedtler authored
-
Chris Hofstaedtler authored
-
Chris Hofstaedtler authored
-
Chris Hofstaedtler authored
-
Chris Hofstaedtler authored
-
Chris Hofstaedtler authored
-
- Jun 09, 2020
-
-
Michael Prokop authored
Fixes: | ==> virtualbox-iso: bats warning: duplicate test name(s) in /tmp/debian64.bats: test_home_directory_for_user_vagrant
-
Michael Prokop authored
While at it, drop compression_level (it's set to level 6 by default so let's use that unless we've a good reason to choose something different), see https://www.packer.io/docs/post-processors/vagrant/
-
- Jun 05, 2020
-
-
Michael Prokop authored
Quoting from https://packages.qa.debian.org/g/grml-debootstrap.html | Issues preventing migration: | Not built on buildd: arch all binaries uploaded by mika, a new source-only upload is needed to allow migration Sigh...
-
- Jun 03, 2020
-
-
Michael Prokop authored
-
Michael Prokop authored
-
Michael Prokop authored
Related to commit 07e835ea and the discussion within https://github.com/grml/grml-debootstrap/pull/153 If execution of --sshcopyid fails, then user might want to be aware of it. So instead of implementing the copying of .ssh/authorized_keys as fallback of --sshcopyid, let's provide it via cmdline option --sshcopyauth. Reviewed-by: Chris Hofstaedtler Reviewed-by: Darshaka Pathirana Closes: https://github.com/grml/grml-debootstrap/pull/153
-
Michael Prokop authored
-
- May 12, 2020
-
-
Michael Prokop authored
-
Michael Prokop authored
This is much better for (code) reviews
-
Michael Prokop authored
-
- Feb 26, 2020
-
-
Antoine Beaupré authored
We retain backwards compatibility, that is: we use keys from the agent by default. But if unavailable, we tap into the ~/.ssh/authorized_keys file (or whatever is specified by the $AUTHORIZED_KEYS_SOURCE environment). The target SSH directory can be changed with $AUTHORIZED_KEYS_TARGET. Closes: #151
-
- Dec 13, 2019
-
-
Michael Prokop authored
When invoking grml-debootstrap as user without /usr/sbin inside $PATH, then the debootstrap binary will not be found and executing `grml-debootstrap --version` fails with `debootstrap not installed`. Closes: https://github.com/grml/grml-debootstrap/issues/147
-
Michael Prokop authored
We need the /run/udev bind-mount to be present also when doing VM installations for buster and newer, otherwise the installation takes loooong due to the: | WARNING: Device /dev/... not initialized in udev database even after waiting 10000000 microseconds bug. As the /run/udev bind-mount is already gone we need to resurrect before invoking update-grub in the VM installation.
-
- Dec 10, 2019
-
-
Michael Prokop authored
-