From b257d6d347834a68a05d675516ca733d9e88e2b3 Mon Sep 17 00:00:00 2001 From: Jeff Zhou Date: Sun, 13 Sep 2026 11:51:05 +0800 Subject: [PATCH] mk/chroot.mk: check for dracut binary instead of directory The condition `[ -e "$@.partial/usr/lib/dracut" ]` tests for directory existence, but the directory can exist (containing only dracut-install) without the dracut binary being installed. This causes the chroot dracut invocation to fail with "command not found" on systems where dracut and initramfs-tools conflict. Change the condition to `[ -x "$@.partial/usr/bin/dracut" ]` so the step is correctly skipped when dracut is not available. README.md: add minimum disk space requirement The build consumes approximately 34 GiB of disk space. Note this in the Requirements section to avoid build failures due to insufficient space. Assisted-by: OpenCode(Mimo V2.5) --- README.md | 2 ++ mk/chroot.mk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e5c9cf..769c1a3 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This repository contains the tools necessary for building Pop!\_OS ISOs. ## Requirements +- At least 40 GiB of free disk space (the build process consumes ~34 GiB). + First you need to import the Pop!\_OS ISO signing key: ```sh diff --git a/mk/chroot.mk b/mk/chroot.mk index c93558a..537f6e3 100644 --- a/mk/chroot.mk +++ b/mk/chroot.mk @@ -222,7 +222,7 @@ $(BUILD)/live: $(BUILD)/chroot fi # Rebuild initramfs with dracut's host-only mode disabled - if [ -e "$@.partial/usr/lib/dracut" ]; then \ + if [ -x "$@.partial/usr/bin/dracut" ]; then \ sudo $(CHROOT) "$@.partial" /bin/bash -e -c 'dracut -v --no-hostonly --regenerate-all --force --add "bash dmsquash-live pop-installer" --filesystem "ext4 isofs squashfs vfat"'; \ fi