LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2017, 11:34 AM   #1
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 400

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Net install


/usr/lib/setup/slackinstall:
Code:
    # Install the package series:
    for package in $SRCPATH/$series/*.t?z ; do
      [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
      if [ "$MODE" = "full" ]; then # install the package
        installpkg -root $ROOTDIR -infobox -priority ADD $package
        ERROR=$?
      elif [ "$MODE" = "terse" ]; then # install the package with terse description
        installpkg -root $ROOTDIR -terse -priority ADD $package
        ERROR=$?
      else
        installpkg -root $ROOTDIR -menu -tagfile $TMP/tagfiles/$1/tagfile $package
        ERROR=$?
      fi
      if [ ! $ERROR = 0 ]; then
        errorcode $ERROR $package
      fi
      [ "x$REMOTESVR" != "x" ] && zap_pkg $series $(basename $package)
    done
Installing from http/ftp. A SKP tagged package is still being downloaded. Then skipped and zapped


Cheers
 
Old 09-14-2017, 07:19 PM   #2
joachin
LQ Newbie
 
Registered: Sep 2017
Location: El Salvador
Distribution: Slackware64-current
Posts: 14

Rep: Reputation: 0
Did you do a netinstall? The best way it's to install all the DVD and desinstall later what you don't need. If not you are going to have a lot of problems like that...
 
Old 09-15-2017, 03:48 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,725

Rep: Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092Reputation: 4092
Quote:
Originally Posted by joachin View Post
Did you do a netinstall? The best way it's to install all the DVD and desinstall later what you don't need. If not you are going to have a lot of problems like that...
Problems? What problems?
When I wrote the FTP/HTTP installer, the issue I had that I could not modify the "installpkg" script. I had to basically "plug in" my net-install functionality into the existing flow of the installer. So, when using a HTTP/FTP source for the packages, the installer will download every package, then installpkg will decide whether it is actually needed, and afterwards the downloaded package is "zapped" i.e. deleted.
This is not efficient as it downloads a lot of stuff which may tax your internet connection, but at the time I was already happy that I got it working. Plus, the HTTP/FTP installer is *not* meant to be used against Internet mirrors - the intention is that you have a local HTTP or FTP server in your LAN which will be the source for your netinstall.

If you come up with a patch to make this net-install more efficient, by only downloading what's actually needed, that would be something to look at. For now, it works fine at the cost of some additional downloaded data.
 
2 members found this post helpful.
Old 09-15-2017, 08:03 AM   #4
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 400

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Code:
for package in $SRCPATH/$series/*.t?z ; do
    if [ "$MODE" = "full" ]; then # install the package
        [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
        installpkg -root $ROOTDIR -infobox -priority ADD $package
        ERROR=$?
    elif [ "$MODE" = "terse" ]; then # install the package with terse description
        [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
        installpkg -root $ROOTDIR -terse -priority ADD $package
        ERROR=$?
    else
        if [ "x$REMOTESVR" != "x" ]; then
            grep "^$(echo $(basename $package) | rev | cut -f4- -d '-' | rev):" \
                 $TMP/tagfiles/$1/tagfile | grep -qw SKP \
                || get_pkg $series $(basename $package) '-q'
        fi
        installpkg -root $ROOTDIR -menu -tagfile $TMP/tagfiles/$1/tagfile $package
        ERROR=$?
    fi
    if [ ! $ERROR = 0 ]; then
        errorcode $ERROR $package
    fi
    [ "x$REMOTESVR" != "x" ] && zap_pkg $series $(basename $package)
done
I'll test it this weekend.


Cheers

Last edited by ivandi; 09-15-2017 at 03:53 PM. Reason: cut -f4- instead of -f3-
 
1 members found this post helpful.
Old 09-15-2017, 05:11 PM   #5
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 400

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
It works.
Code:
diff -ruN setup.orig/slackinstall setup/slackinstall
--- setup.orig/slackinstall	2016-06-24 17:13:20.000000000 -0400
+++ setup/slackinstall	2017-09-15 15:45:54.000000000 -0400
@@ -135,14 +135,20 @@
     sleep 1
     # Install the package series:
     for package in $SRCPATH/$series/*.t?z ; do
-      [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
       if [ "$MODE" = "full" ]; then # install the package
+        [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
         installpkg -root $ROOTDIR -infobox -priority ADD $package
         ERROR=$?
       elif [ "$MODE" = "terse" ]; then # install the package with terse description
+        [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
         installpkg -root $ROOTDIR -terse -priority ADD $package
         ERROR=$?
       else
+	if [ "x$REMOTESVR" != "x" ]; then
+	  grep "^$(echo $(basename $package) | rev | cut -f4- -d '-' | rev):" \
+	  $TMP/tagfiles/$1/tagfile | grep -qw SKP \
+	  || get_pkg $series $(basename $package) '-q'
+	fi
         installpkg -root $ROOTDIR -menu -tagfile $TMP/tagfiles/$1/tagfile $package
         ERROR=$?
       fi
slackware64-14.2-netinstall.iso
slackware64-14.2-netinstall.iso.md5

There are also tagfiles for a reasonably minimal system in /tag of the initrd. So you can select tagpath install and type /tag when prompted.


Cheers
 
4 members found this post helpful.
Old 10-01-2017, 08:00 PM   #6
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 400

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
isolinux/initrd.img: Rebuilt.
Any chances of getting this brain damage repaired


Cheers
 
Old 10-01-2017, 08:12 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,318

Rep: Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709Reputation: 3709
Quote:
Originally Posted by ivandi View Post
Any chances of getting this brain damage repaired
You know, calling alienBOB's code "brain damage" isn't exactly a diplomatic approach. Nevertheless I'll check out your patch.

"Cheers"
 
1 members found this post helpful.
Old 10-01-2017, 08:49 PM   #8
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 400

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by volkerdi View Post
You know, calling alienBOB's code "brain damage" isn't exactly a diplomatic approach.
You know, the folks here claim that everything is thoroughly tested.


Cheers (sincerely).
 
Old 10-02-2017, 06:25 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,867

Rep: Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780
@ivandi: you have been heard:
Code:
Mon Oct  2 17:16:06 UTC 2017
...
isolinux/initrd.img:  Rebuilt.
  When doing a network install, don't download a package if the tagfile
  is going to skip installing it. Thanks to ivandi.
 
1 members found this post helpful.
Old 10-02-2017, 09:59 PM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 2,782

Rep: Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205Reputation: 1205
And if there are problems in the future, we can blame ivandi for insufficient testing. Win/Win!
 
5 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Microsoft's .NET-mare: ASP.NET 2.0 won't work on Windows-only .NET LXer Syndicated Linux News 0 05-10-2017 07:32 AM
cant install centos 7 net install on HP i3-b080sa laptop sigint-ninja Linux - Newbie 2 10-28-2015 01:05 PM
F18 doesn't install, needs (nonexistent) net. With net, no reaction either. JZL240I-U Fedora 8 02-28-2013 05:33 AM
etch net install hangs on install software knobby67 Debian 1 02-14-2007 12:58 PM
NIC recognized in debian net install but not after install Cycle Debian 7 12-23-2005 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration