Skip to content

hook-functions: avoid aborting in chroots

chroots and other build environments often do not have /sys mounted. Nevertheless they want to build initrds. As a complication, live-boot calls these functions from a hook that has "set -e" turned on, turning the ignored error from "read" into an abort of update-initramfs.

Fixes: b3e8cc40

Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099461

Signed-off-by: Chris Hofstaedtler zeha@debian.org

Edited by Chris Hofstaedtler

Merge request reports

Loading