Bug #3217
rescue tools: make install fails if rescue folder doesn't exist
0%
Description
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
History
Updated by liweitianux about 1 year ago
Hi. This is the expected behavior because initrd's 'make install' would not create the destination directory '/rescue', which is created by 'mtree(8)' during the 'make installworld' stage.
Cheers,
Aaron
Updated by t_dfbsd about 1 year ago
I hit this because I was creating a new boot drive by copying files over (almost never use the installer). No worries, I can just make the folder now that I know, but it seems like a small thing to check for in the makefile.