Project

General

Profile

Bug #3217

rescue tools: make install fails if rescue folder doesn't exist

Added by t_dfbsd 18 days ago. Updated 18 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/27/2019
Due date:
% Done:

0%

Estimated time:

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

#1

Updated by liweitianux 18 days 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

#2

Updated by t_dfbsd 18 days 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.

Also available in: Atom PDF