Re: sysupgrade: Allow to use another directory for the sets

2019-11-22 Thread Renaud Allard
On 22/11/2019 16:38, Craig Skinner wrote: On Tue, 19 Nov 2019 10:35:56 + Stuart Henderson wrote: We are short on partitions, there is a hard limit (14+swap), disklabel auto defaults already use 9, and there need to be some free for typical user use (ports, dest for "make release", people o

Re: sysupgrade: Allow to use another directory for the sets

2019-11-22 Thread Stuart Henderson
On 2019/11/22 15:38, Craig Skinner wrote: > Could a similar /tmp/sysupgrade/ default directory suit most situations? My systems with MFS /tmp say no.

Re: sysupgrade: Allow to use another directory for the sets

2019-11-22 Thread Andrew Grillet
I vote for this. On Fri, 22 Nov 2019 at 16:12, Craig Skinner wrote: > On Tue, 19 Nov 2019 10:35:56 + Stuart Henderson wrote: > > We are short on partitions, there is a hard limit (14+swap), disklabel > auto > > defaults already use 9, and there need to be some free for typical user > use >

Re: sysupgrade: Allow to use another directory for the sets

2019-11-22 Thread Craig Skinner
On Tue, 19 Nov 2019 10:35:56 + Stuart Henderson wrote: > We are short on partitions, there is a hard limit (14+swap), disklabel auto > defaults already use 9, and there need to be some free for typical user use > (ports, dest for "make release", people often want a separate /var/www and/or > /v

Re: sysupgrade: Allow to use another directory for the sets

2019-11-21 Thread Raimo Niskanen
On Wed, Nov 20, 2019 at 12:06:59PM +0100, Solene Rapenne wrote: > On Tue, Nov 12, 2019 at 07:02:56PM +0100, Renaud Allard wrote: > > > > > > On 12/11/2019 08:29, Theo de Raadt wrote: > > > > > > Renaud, please test it for me like this: > > > > > > sysupgrade -d / > > > > > > This interfa

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Renaud Allard
On 11/20/19 12:06 PM, Solene Rapenne wrote: On Tue, Nov 12, 2019 at 07:02:56PM +0100, Renaud Allard wrote: On 12/11/2019 08:29, Theo de Raadt wrote: Renaud, please test it for me like this: sysupgrade -d / This interface is dangerously incorrect. What about this one? Index:

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Solene Rapenne
On Tue, Nov 12, 2019 at 07:02:56PM +0100, Renaud Allard wrote: > > > On 12/11/2019 08:29, Theo de Raadt wrote: > > > > Renaud, please test it for me like this: > > > > sysupgrade -d / > > > > This interface is dangerously incorrect. > > > > What about this one? > Index: sysupgrade.8 >

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Renaud Allard
On 11/20/19 10:59 AM, Solene Rapenne wrote: no, this script makes /home/_sysupgrade a symbolic link to the real location where you want to store the sets. So /home doesn't require more space than the requirement for an additional symlink. sysupgrade has a check to ensure the directory is n

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Solene Rapenne
On Wed, Nov 20, 2019 at 10:55:28AM +0100, Renaud Allard wrote: > Hi Solene, > > On 11/20/19 10:46 AM, Solene Rapenne wrote: > > wouldn't be easier for people using non standard locations to write a > > small wrapper script like this (not tested, written in the mail) > > > > #!/bin/sh > > > > MYD

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Renaud Allard
Hi Solene, On 11/20/19 10:46 AM, Solene Rapenne wrote: wouldn't be easier for people using non standard locations to write a small wrapper script like this (not tested, written in the mail) #!/bin/sh MYDEST=/var/sysupgrade install -d -o root -g wheel $MYDEST rm -fr /home/_sysupgrade ln -s $MY

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Solene Rapenne
On Wed, Nov 20, 2019 at 10:37:02AM +0100, Raimo Niskanen wrote: > On Tue, Nov 19, 2019 at 09:00:33AM +, Stuart Henderson wrote: > > On 2019/11/18 14:45, Raimo Niskanen wrote: > > > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote: > > > > > > > > > > > > On 11/18/19 10:08 AM, Rai

Re: sysupgrade: Allow to use another directory for the sets

2019-11-20 Thread Raimo Niskanen
On Tue, Nov 19, 2019 at 09:00:33AM +, Stuart Henderson wrote: > On 2019/11/18 14:45, Raimo Niskanen wrote: > > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote: > > > > > > > > > On 11/18/19 10:08 AM, Raimo Niskanen wrote: > > > > > > > A configuration parameter could be accompl

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Theo de Raadt
Craig Skinner wrote: > On Thu, 7 Nov 2019 14:42:32 + Stuart Henderson wrote: > > On 2019/11/07 11:15, Craig Skinner wrote: > > > On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > > > > Given the amount of people which encrypt /home directory on their > > > > servers, it might be usefu

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Raimo Niskanen
On Tue, Nov 19, 2019 at 09:00:33AM +, Stuart Henderson wrote: > On 2019/11/18 14:45, Raimo Niskanen wrote: > > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote: > > > > > > > > > On 11/18/19 10:08 AM, Raimo Niskanen wrote: > > > > > > > A configuration parameter could be accompl

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Renaud Allard
On 11/19/19 11:11 AM, Craig Skinner wrote: If the installer created a 750Mb /var/cache/ partition, and sysupgrade's cache directory is hard coded as /var/cache/sysupgrade/, would that simply solve the various problems people are having & scripting difficulties? Other tools which cache files

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Stuart Henderson
On 2019/11/19 10:11, Craig Skinner wrote: > On Thu, 7 Nov 2019 14:42:32 + Stuart Henderson wrote: > > On 2019/11/07 11:15, Craig Skinner wrote: > > > On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > > > > Given the amount of people which encrypt /home directory on their > > > > servers

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Renaud Allard
On 11/19/19 10:00 AM, Stuart Henderson wrote: It does avoid the removal issue but it seems an awkward user interface to pass the parent directory. Perhaps better to enforce that the path matches */_sysupgrade, though this also doesn't feel quite right. Perhaps add /_sysupgrade if it wasn't alre

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Craig Skinner
On Thu, 7 Nov 2019 14:42:32 + Stuart Henderson wrote: > On 2019/11/07 11:15, Craig Skinner wrote: > > On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > > > Given the amount of people which encrypt /home directory on their > > > servers, it might be useful to be able to define another di

Re: sysupgrade: Allow to use another directory for the sets

2019-11-19 Thread Stuart Henderson
On 2019/11/18 14:45, Raimo Niskanen wrote: > On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote: > > > > > > On 11/18/19 10:08 AM, Raimo Niskanen wrote: > > > > > A configuration parameter could be accomplished through an optional > > > symlink > > > /etc/_sysupgrade that the sysadmi

Re: sysupgrade: Allow to use another directory for the sets

2019-11-18 Thread Raimo Niskanen
On Mon, Nov 18, 2019 at 01:23:27PM +0100, Renaud Allard wrote: > > > On 11/18/19 10:08 AM, Raimo Niskanen wrote: > > > A configuration parameter could be accomplished through an optional symlink > > /etc/_sysupgrade that the sysadmin can create to point at the installation's > > sysupgrade direc

Re: sysupgrade: Allow to use another directory for the sets

2019-11-18 Thread Renaud Allard
On 11/18/19 10:08 AM, Raimo Niskanen wrote: A configuration parameter could be accomplished through an optional symlink /etc/_sysupgrade that the sysadmin can create to point at the installation's sysupgrade directory. The sysupgrade script would test -s /etc/_sysupgrade and if there is a sym

Re: sysupgrade: Allow to use another directory for the sets

2019-11-18 Thread Raimo Niskanen
On Thu, Nov 14, 2019 at 10:32:43AM +0100, Renaud Allard wrote: > > > On 11/13/19 11:51 PM, Renaud Allard wrote: > > > > > > On 12/11/2019 19:02, Renaud Allard wrote: > >> > >> > >> On 12/11/2019 08:29, Theo de Raadt wrote: > >>> > >>> Renaud, please test it for me like this: > >>> > >>>   s

Re: sysupgrade: Allow to use another directory for the sets

2019-11-14 Thread Renaud Allard
On 11/13/19 11:51 PM, Renaud Allard wrote: On 12/11/2019 19:02, Renaud Allard wrote: On 12/11/2019 08:29, Theo de Raadt wrote: Renaud, please test it for me like this:   sysupgrade -d / This interface is dangerously incorrect. What about this one? ping. I haven't seen any rep

Re: sysupgrade: Allow to use another directory for the sets

2019-11-13 Thread Renaud Allard
On 12/11/2019 19:02, Renaud Allard wrote: On 12/11/2019 08:29, Theo de Raadt wrote: Renaud, please test it for me like this:   sysupgrade -d / This interface is dangerously incorrect. What about this one? ping. I haven't seen any reply on the prefix based patch, but what about a

Re: sysupgrade: Allow to use another directory for the sets

2019-11-12 Thread Renaud Allard
On 12/11/2019 08:29, Theo de Raadt wrote: Renaud, please test it for me like this: sysupgrade -d / This interface is dangerously incorrect. What about this one? Index: sysupgrade.8 === RCS file: /cvs/src/usr.sbin/sysupg

Re: sysupgrade: Allow to use another directory for the sets

2019-11-12 Thread Renaud Allard
On 11/12/19 8:29 AM, Theo de Raadt wrote: Renaud Allard wrote: +.It Fl d Ar directory +Choose the +.Ar directory +in which the sets will be downloaded. +Default is +.Pa /home/_sysupgrade . ... + d) SETSDIR=${OPTARG};; ... -rm -f /home/_sysupgrade/{${CLEAN}} +rm -f ${SETSD

Re: sysupgrade: Allow to use another directory for the sets

2019-11-11 Thread Theo de Raadt
Renaud Allard wrote: > +.It Fl d Ar directory > +Choose the > +.Ar directory > +in which the sets will be downloaded. > +Default is > +.Pa /home/_sysupgrade . ... > + d) SETSDIR=${OPTARG};; ... > -rm -f /home/_sysupgrade/{${CLEAN}} > +rm -f ${SETSDIR}/{${CLEAN}} Renaud, please test

Re: sysupgrade: Allow to use another directory for the sets

2019-11-11 Thread Jason McIntyre
On Tue, Nov 12, 2019 at 08:06:52AM +0100, Renaud Allard wrote: > > > On 09/11/2019 12:52, Klemens Nanni wrote: > > On Fri, Nov 08, 2019 at 11:59:20AM +, Stuart Henderson wrote: > >>> Given the amount of people which encrypt /home directory on their servers, > >>> it might be useful to be able

Re: sysupgrade: Allow to use another directory for the sets

2019-11-11 Thread Renaud Allard
On 09/11/2019 12:52, Klemens Nanni wrote: On Fri, Nov 08, 2019 at 11:59:20AM +, Stuart Henderson wrote: Given the amount of people which encrypt /home directory on their servers, it might be useful to be able to define another directory for the sets in sysupgrade as /home_sysupgrade will n

Re: sysupgrade: Allow to use another directory for the sets

2019-11-09 Thread Klemens Nanni
On Fri, Nov 08, 2019 at 11:59:20AM +, Stuart Henderson wrote: > > Given the amount of people which encrypt /home directory on their servers, > > it might be useful to be able to define another directory for the sets in > > sysupgrade as /home_sysupgrade will not be available in that case. > >

Re: sysupgrade: Allow to use another directory for the sets

2019-11-08 Thread Stuart Henderson
On 2019/11/06 13:41, Renaud Allard wrote: > Hello, > > Given the amount of people which encrypt /home directory on their servers, > it might be useful to be able to define another directory for the sets in > sysupgrade as /home_sysupgrade will not be available in that case. This (encrypted /home

Re: sysupgrade: Allow to use another directory for the sets

2019-11-07 Thread Stuart Henderson
On 2019/11/07 11:15, Craig Skinner wrote: > On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > > Given the amount of people which encrypt /home directory on their > > servers, it might be useful to be able to define another directory for > > the sets in sysupgrade as /home_sysupgrade will n

Re: sysupgrade: Allow to use another directory for the sets

2019-11-07 Thread Craig Skinner
On Wed, 6 Nov 2019 13:41:07 +0100 Renaud Allard wrote: > Given the amount of people which encrypt /home directory on their > servers, it might be useful to be able to define another directory for > the sets in sysupgrade as /home_sysupgrade will not be available in that > case. How about /var/c