From 0d3a9dd524270afd3d292e744716404e4305cde2 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Wed, 14 Feb 2024 11:05:48 +0000 Subject: [PATCH] Fix for case when there is no pre-existing initrd Like in initial osbuild, in this case just use "/boot". Signed-off-by: Eric Curtin --- bin/initoverlayfs-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/initoverlayfs-install b/bin/initoverlayfs-install index f91cfcc..f4b60bc 100755 --- a/bin/initoverlayfs-install +++ b/bin/initoverlayfs-install @@ -27,8 +27,8 @@ detect_path_initramfs() { done - echo "Cannot detect initramfs path, aborting..." - exit 1 + # on first build, like in osbuild, there will be no prior initrd to detect + INITRAMFS_DIR="/boot" } exec_erofs() {