DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2014
Timmy66 Timmy66 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 12
Default Autoselect siteXX.tgz

Hi all,

Is it possible to get siteXX.tgz selected by default? As it is right now I have to select siteXX.tgz during installation, but I want it marked for installation by default.
Reply With Quote
  #2   (View Single Post)  
Old 15th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You can use the installation/upgrade scripts' new autoinstall(8) feature, or you would need to customize the install script.

Autoinstall requires a DHCP server configured with the next-server option to provide the address of a webserver (which may be the same server) to provide the automatic prompt response files.
Reply With Quote
  #3   (View Single Post)  
Old 15th July 2014
Timmy66 Timmy66 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 12
Default

Quote:
Originally Posted by jggimi View Post
You can use the installation/upgrade scripts' new autoinstall(8) feature, or you would need to customize the install script.

Autoinstall requires a DHCP server configured with the next-server option to provide the address of a webserver (which may be the same server) to provide the automatic prompt response files.
Any tips on what I need to change in install.sh or install.sub? I've added this to install.sub:

Code:
for _set in base etc comp man site; do
	[[ $MODE == upgrade && ( $_set == etc || $_set == xetc ) ]] && continue
	THESETS="$THESETS ${_set}${VERSION}.tgz"
	isin $_set site && continue
	DEFAULTSETS="$DEFAULTSETS ${_set}${VERSION}.tgz"
done
Reply With Quote
  #4   (View Single Post)  
Old 15th July 2014
Timmy66 Timmy66 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 12
Default

Managed it solve it. It might not be pretty. I added site to the following line in install.sub.

Code:
SANESETS="${SANESETS:-bsd} base${VERSION}.tgz etc${VERSION}.tgz site${VERSION}.tgz"
Reply With Quote
  #5   (View Single Post)  
Old 15th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I haven't had time to review your edits, but I will state that if you wish to share them with the project, you should get used to sharing your recommended changes in the form of patches -- specifically unified diff(1) output ($ diff -u ...).

In particular, when used with a CVS working directory, they will show the revision number you used as source and will show the context of your change against the underlying source.

For example, here's how I made this proposed patch to a man page that I sent to misc@ two days ago:
Code:
$ cd /usr/src/sbin/nfsd
$ vi nfsd.8
$ cvs diff -u nfsd.8 > /tmp/my.wonderful.patch.I.hope.they.accept
Reply With Quote
  #6   (View Single Post)  
Old 15th July 2014
Timmy66 Timmy66 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 12
Default

If the changes that i made are worth adding, then I will commit them, but I have no idea how I add it to the repository
Reply With Quote
  #7   (View Single Post)  
Old 15th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You and I don't commit. We can't. We can propose, only. Commit status is only available to Project Members (also known as OpenBSD Developers).

Reply With Quote
  #8   (View Single Post)  
Old 16th July 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by jggimi View Post
Code:
$ cvs diff -u nfsd.8 > /tmp/my.wonderful.patch.I.hope.they.accept
Please please change that to cvs diff -uNp
As an aside, the default install contains a ~/.cvsrc with the proper flags already there, so you can just issue cvs diff and it'll be fine.
Reply With Quote
  #9   (View Single Post)  
Old 17th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Thanks for the correction! Now it's my turn.

/etc/skel/dot.cvsrc
wasn't added to the tree until March 2013, so accounts created before then won't have a preloaded $HOME/.cvsrc file.

Last edited by jggimi; 17th July 2014 at 12:52 AM. Reason: I can't type two lines without a typo. It's impossible.
Reply With Quote
Old 17th July 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by jggimi View Post
Thanks for the correction! Now it's my turn.

/etc/skel/dot.cvsrc
wasn't added to the tree until March 2013, so accounts created before then won't have a preloaded $HOME/.cvsrc file.
i.e. no supported version of OpenBSD doesn't have this ;-)

(Yes I know this doesn't account for upgrades, that's why I mentioned the full flags.)
Reply With Quote
Old 17th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Yes, and, now that you pointed me to it, repairs have been completed:

$ cp /etc/skel/.cvsrc ~

Thanks again!

Last edited by jggimi; 17th July 2014 at 01:22 AM. Reason: I type toooo quickly.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
siteXX.tgz and install.site Oko OpenBSD Installation and Upgrading 6 2nd March 2011 12:50 AM


All times are GMT. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick