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 19th January 2013
Timmy66 Timmy66 is offline
New User
 
Join Date: Sep 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default install.site won't run

Hi all,

I'm trying to create a custom 5.2 cd for work and I've got a problem with my install.site and site52.tgz. When I run the obsd installer I can see my site52.tgz and if I select it the files are being extracted to /mnt/site52/. but nothing happens after the files have been extracted.
Before creating the .tgz I ran chmod u+x on install.site.

My install.site just installs a couple of programs and these are included in the site52.tgz.
Can anyone help me?
Reply With Quote
  #2   (View Single Post)  
Old 19th January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,833
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Timmy66 View Post
Before creating the .tgz I ran chmod u+x on install.site.
What is the ownership of the install.site script & site52.tgz files?
Reply With Quote
  #3   (View Single Post)  
Old 19th January 2013
Timmy66 Timmy66 is offline
New User
 
Join Date: Sep 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
What is the ownership of the install.site script & site52.tgz files?
Code:
-rw-r--r--  1 root  wheel  209786912 Jan 19 00:49 site52.tgz
-rwxr-xr-x  1 root  wheel   5397 Jan 18 13:13 install.site
Reply With Quote
  #4   (View Single Post)  
Old 19th January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,833
Thanked 190 Times in 160 Posts
Default

Two comments:
  • Personally, I would make the permissions wide open (777), until you have resolved the problem. At that point, you can make the permissions more restrictive.
  • As I recall, the install.site script is executed in /. I assume this is where your tarfile deposits it.
Reply With Quote
  #5   (View Single Post)  
Old 19th January 2013
Timmy66 Timmy66 is offline
New User
 
Join Date: Sep 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
Two comments:
  • Personally, I would make the permissions wide open (777), until you have resolved the problem. At that point, you can make the permissions more restrictive.
  • As I recall, the install.site script is executed in /. I assume this is where your tarfile deposits it.
Ok, i'll try changing the permissions. The install.site is extracted to /mnt/site52.
Reply With Quote
  #6   (View Single Post)  
Old 19th January 2013
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

I use these permissions, owner and group:
Code:
-rwxrw----  1 root  wheel   251 Jan 14 14:31 install.site
-rwxrw----  1 root  wheel  7925 Jan 14 14:31 postinstall_alix
My install.site actually is a wrapper script: that use tee(1) to show the output to console, as well as log to a file.

Code:
# cat install.site                                                         
#!/bin/sh
# install.site for alix

INSTALL_LOG=./var/log/post_install.report
install -m 660 /dev/null ${INSTALL_LOG}

. ./postinstall_alix 2>&1 | tee ${INSTALL_LOG}
cat <<END

$0 : done
------------------------------------------------------------
END
I use Makefiles to generate and tar up the siteXX.tgz and siteXX-host..tgz files
Code:
sitexx ${SITEXX} :
.if exists(${SITEDIR}/install.site)
        install -p -o root -g wheel -m 760 ${SITEDIR}/install.site FILES 
.else
        @printf "\nWARNING: No  ${SITEDIR}/install.site !!!\n\n"
.endif
.if exists(${SITEDIR}/postinstall_${BOX})
        install -p -o root -g wheel -m 760 ${SITEDIR}/postinstall_${BOX} FILES
.else
        @printf "\nWARNING: No  ${SITEDIR}/postinstall_${BOX} !!\n\n" ;
.endif
        tar cvzf ${SITEXX} ${TARXX}
As you can see I use install(1) to adjust owner, group and permissions before creating the tgz files.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #7   (View Single Post)  
Old 19th January 2013
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

The contents of the site52.tgz so you can see the correct path;
Code:
# tar tvzf site52.tgz                              
drwx------  2 root     wheel            0 Feb 20  2011 ./root
-rw-r-----  1 root     wheel         1126 Jan 27  2010 ./root/format_fstab
-rw-r-----  1 root     wheel          764 Jan 31  2010 ./root/_serialconsole
-rw-r-----  1 root     wheel          231 Feb 20  2011 ./root/_boot-bsd.rd
-rw-r-----  1 root     wheel         1590 Mar  8  2010 ./root/PKGenv
-rw-r-----  1 root     wheel          244 Feb 20  2011 ./root/_boot-bsd.rd-serialconsole
drwxr-xr-x  2 root     wheel            0 Feb 14  2011 ./etc
-rw-------  1 root     wheel         1758 Feb 24  2010 ./etc/pf.conf
-rwxrw----  1 root     wheel          251 Jan 14 14:31 ./install.site
-rwxrw----  1 root     wheel         7925 Jan 14 14:31 ./postinstall_alix
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #8   (View Single Post)  
Old 19th January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,833
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Timmy66 View Post
The install.site is extracted to /mnt/site52.
Per Section 4.14 of the FAQ:
Code:
As the last step in the install/upgrade process, the scripts look in the 
root directory of the newly installed/upgraded system for install.site or 
upgrade.site...
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
Help with Home connection site to site vpn setup badguy OpenBSD Security 3 25th October 2010 05:15 PM
Routing between site-to-site tunnels docrice OpenBSD General 5 26th September 2008 09:21 AM
OBSD 4.3 Customize site43 & install.site problems gamaliel OpenBSD Installation and Upgrading 7 3rd June 2008 03:25 PM
Bare Minimum Site-to-Site VPN on OpenBSD ai-danno Guides 0 20th May 2008 12:45 AM


All times are GMT. The time now is 09:50 AM.


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