Upgrading with the sets on disk still fails if the sets are under
a directory that the unprivileged user can't access and if there
is no SHA256.sig file.

Revision 1.925 of install.sub was supposed to fix this, but appears
to have missed the case where there is no SHA256.sig file.

   1464         for _f in $_get_sets; do
   1465                 _fsrc="$_src/$_f"
   1466                 [[ -f $_tmpsrc/$_f ]] && _fsrc="file://$_tmpsrc/$_f" 
_un   1466 priv=

At this point _tmpsrc is empty.

--------------------
booting hd0a:bsd.rd: 3340316+1422336+2400920+0+598016 
[72+441216+283284]=0x81a0e0
entry point at 0x1001000 [7205c766, 34000004, 24448b12, b440a304]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2016 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.0-current (RAMDISK_CD) #0: Sat Oct 22 00:37:13 BST 2016
    [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
[...]
Let's upgrade the sets!
Location of sets? (disk http or 'done') [http] disk
Is the disk partition already mounted? [no] y
Pathname to the sets? (or 'done') [6.0/amd64] /root/rel

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
sets are labelled '[X]'.
    [X] bsd           [X] base60.tgz    [X] game60.tgz    [X] xfont60.tgz
    [X] bsd.rd        [X] comp60.tgz    [X] xbase60.tgz   [X] xserv60.tgz
    [X] bsd.mp        [X] man60.tgz     [X] xshare60.tgz
Set name(s)? (or 'abort' or 'done') [done] 
Directory does not contain SHA256.sig. Continue without verification? [no] y
ftp: Can't open file ///mnt//root/rel/bsd: Permission denied
Installation of bsd failed. Continue anyway? [no]

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to