[DragonFlyBSD - Bug #3217] rescue tools: make install fails if rescue folder doesn't exist

sigttou bugtracker-admin at leaf.dragonflybsd.org
Tue Oct 6 23:41:31 PDT 2026


Issue #3217 has been updated by sigttou.

File 0001-initrd-create-rescue-directory.patch added

A direct `make install` in `initrd` can still fail when `/rescue` does not exist. The first install command creates a file named `/rescue`, then installing the scripts fails because that path is not a directory.

The attached patch creates `${DESTDIR}/rescue` before installing the rescue tools.



----------------------------------------
Bug #3217: rescue tools: make install fails if rescue folder doesn't exist
http://bugs.dragonflybsd.org/issues/3217#change-14811

* Author: Anonymous
* Status: New
* Priority: Normal
* Target version: 6.4
* Start date: 2019-11-27
----------------------------------------
boojum# ls -l /rescue
ls: /rescue: No such file or directory

boojum# make install
--------------------------------------------------------------
>>> installing rescue tools to /rescue ...
--------------------------------------------------------------
(cd /usr/src/initrd/oinit;  LC_ALL=C  make -m /usr/src/initrd/../share/mk BINDIR=/rescue install)
install -s -o root -g wheel -m 555   oinit /rescue
(cd /usr/src/initrd/rescue;  LC_ALL=C  make -m /usr/src/initrd/../share/mk BINDIR=/rescue install)
install -s -o root -g wheel -m 555   rescue /rescue
install -o root  -g wheel -m 555  /usr/src/initrd/rescue/dowpa  /rescue/dowpa
install: /rescue/dowpa: Not a directory
*** Error code 71

Stop.
make[1]: stopped in /usr/src/initrd/rescue
*** Error code 1

Stop.
make: stopped in /usr/src/initrd

---Files--------------------------------
0001-initrd-create-rescue-directory.patch (1.02 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list