Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

seeking to build a net-based install .iso of 14.0

20 views
Skip to first unread message

Eyetee

unread,
Dec 24, 2012, 10:53:14 PM12/24/12
to
I find the 14.0 .iso a bit bloated at 2.2 gigs, so I'd like to build my
own, minimal .iso that downloads from repositories during install. Any
advice on how I can get started?

Eyetee

--
website: www.eyetee.org

Grant

unread,
Dec 25, 2012, 12:25:11 AM12/25/12
to
On Mon, 24 Dec 2012 22:53:14 -0500, Eyetee <learn.pr...@eyetee.org> wrote:

>I find the 14.0 .iso a bit bloated at 2.2 gigs, so I'd like to build my
>own, minimal .iso that downloads from repositories during install. Any
>advice on how I can get started?

Yeah... I made a script for that, post it here occasionally, disadvantage
is that it requires install files be downloaded first, I use rsync:

grant@deltree:~$ cd /home/mirror/slackware64-14.0/
grant@deltree:/home/mirror/slackware64-14.0$ cat ../make-boot-cd
#!/bin/bash
#
# build a Slackware boot cd image, derived from isolinux/README.TXT
#
# Copyright (C) 2005-2009 Grant Coady <gr...@bugsplatter.id.au> GPLv2
#
# Last edit: 2009-10-06
#
# This script produces an ISO image of Slackware install tree that can be
# used:
# a) as a boot CD for network (NFS) install, this is a good option for
# following slackware-current as the boot + install section rarely
# changes
#
# b) to install a minimal text-only Slackware system
#
# Usage
# ``````
# Place this script in your local mirror root directory, for example on my
# system I have:
# /home/mirror/
# |-- make-boot-cd
# |-- make-boot-dvd
# |-- slackware-11.0
# |-- slackware-13.0
# |-- slackware-current
# |-- slackware64-13.0
# `-- slackware64-current
#
# Run script by cd'ing into desired mirror top-level directory and issuing
# the command as ../make-boot-cd
#
# Notes
# ``````
# Joerg Schilling says following options not required
# -hide-rr-moved -d -N -J
#
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# User values
# ````````````
# Specify directory and filename for output .iso file, directory may also
# be specified on command line:
output_dir="/home/common"
output_file="slackware.iso"

# Use slackware-$version.iso for output filename
output_file="${PWD##*/}.iso"
#
# Specify volume label (max 32 chars):
volume_id="Slackware_Install"

# Use directory name (eg. slackware64-13.0) for Volume Label (or comment out)
volume_id=${PWD##*/}
#
# Specify application ID 'This should describe the application that will be
# on the disc.' --man mkisofs
application_id="Slackware Install CD"
#
# Specify boot load size, this is count of virtual 512 byte sectors loaded
# to memory, use multiple of 4 as CD sector is 2K.
boot_load_size=4
#
# Adjust to match boot file size, comment out if it not work for you
### boot_load_size=$(((($(stat -c %s ./isolinux/isolinux.bin)+2047)/2048)*4))
#
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

do_fail() # reason
{
printf "\n\tfatal: %s\n\n" $1
exit 1
}
# Perhaps use CLI parameter for custom output directory
[ -n "$1" ] && output_dir="$1"
#
# Check we got output directory
[ -d "$output_dir" ] || do_fail "no destination directory $output_dir"
#
output_path="$output_dir/$output_file"
#
# Autodetect Slackware64
disk_set_path="slackware"
[ -d "slackware64" ] && disk_set_path="slackware64"

#
# Finally, we produce the boot CD image
mkisofs -A "$application_id" -R -V "$volume_id" \
-b isolinux/isolinux.bin -c isolinux/isolinux.boot \
-boot-info-table -boot-load-size $boot_load_size \
-no-emul-boot -sort isolinux/iso.sort \
-x ./extra \
-x ./pasture \
-x ./patches \
-x ./$disk_set_path/d \
-x ./$disk_set_path/e \
-x ./$disk_set_path/f \
-x ./$disk_set_path/k \
-x ./$disk_set_path/kde \
-x ./$disk_set_path/t \
-x ./$disk_set_path/tcl \
-x ./$disk_set_path/x \
-x ./$disk_set_path/xap \
-x ./$disk_set_path/xfce \
-x ./$disk_set_path/y \
-x ./source \
-x ./testing \
-x ./zipslack \
-o "$output_path" .
#
echo "Image written to $output_path"
# end

Grant.
>
>Eyetee

Grant

unread,
Dec 25, 2012, 12:30:21 AM12/25/12
to
On Tue, 25 Dec 2012 16:25:11 +1100, Grant <o...@grrr.id.au> wrote:

>On Mon, 24 Dec 2012 22:53:14 -0500, Eyetee <learn.pr...@eyetee.org> wrote:
>
>>I find the 14.0 .iso a bit bloated at 2.2 gigs, so I'd like to build my
>>own, minimal .iso that downloads from repositories during install. Any
>>advice on how I can get started?
>
>Yeah... I made a script for that, post it here occasionally, disadvantage
>is that it requires install files be downloaded first, I use rsync:

this is the rsync script, just add exclusions for the stuff you not
want:

grant@deltree:~$ cat $(which rs)
#!/bin/bash
#
# rsync slackware install sources to local mirror
#
# Copyright (C) 2006-2010 Grant Coady <http://bugs.id.au> GPLv2
#
# 2012-10-03 add 14.0, rewrite do_rsync()
# 2011- ? add 13.37
# 2010-05-25 add 13.1, cleanup
# 2009-05-24 more comments, easier options
# 2009-05-20 add slackware64!
# 2008-12-11 rewrite again

# set the source mirror host machine here, find these from the slackware.com
# 'get slack' mirrors page
#MIRROR_HOST="slackware.mirrors.tds.net"
MIRROR_HOST="slackware.osuosl.org"
#MIRROR_HOST="mirror.internode.on.net"

# set the local mirror parent directory here
MIRROR_DIR="/home/mirror"

# set bandwidth limit to this value in kiloBytes/second -- I set this to
# leave some bandwidth for other activities while this script is running.
BWLIMIT=512 # guess who got ADSL2+? ;^)

# these rsync options usually not require any changes, they work for me
RSYNC_OPTS="-avPH --bwlimit=$BWLIMIT --delete --delete-excluded --progress "

# Note: Remove '--exclude */kdei' lines below if you need the KDE
# international language support.

# big banner stuff
x="#######################################"
y="##"

do_rsync() # version
{
local z="$1"
local slackcpu="${z%%-*}" # get slackware or slackware64

# display big banner
printf "\n%s%s\n%s%76s\n%s %-72s%s\n%s%76s\n%s%s\n" \
$x $x $y $y $y $z $y $y $y $x $x

# update next install tree
rsync $RSYNC_OPTS \
--exclude $slackcpu/kdei \
--exclude source/kdei \
$MIRROR_HOST::slackware/$z/ $MIRROR_DIR/$z
}

while read vers rest; do

do_rsync $vers

done <<-EOF
slackware-11.0
slackware-13.37
slackware-14.0
slackware-current
slackware64-13.37
slackware64-14.0
slackware64-current
EOF

echo "Done!"
>
>Grant.
>>
>>Eyetee

grey...@mail.com

unread,
Dec 25, 2012, 4:55:41 AM12/25/12
to
On 2012-12-25, Grant <o...@grrr.id.au> wrote:
> On Tue, 25 Dec 2012 16:25:11 +1100, Grant <o...@grrr.id.au> wrote:
>
>>On Mon, 24 Dec 2012 22:53:14 -0500, Eyetee <learn.pr...@eyetee.org> wrote:
>>
>>>I find the 14.0 .iso a bit bloated at 2.2 gigs, so I'd like to build my
>>>own, minimal .iso that downloads from repositories during install. Any
>>>advice on how I can get started?
>>
>>Yeah... I made a script for that, post it here occasionally, disadvantage
>>is that it requires install files be downloaded first, I use rsync:
>
> this is the rsync script, just add exclusions for the stuff you not
> want:
>
> grant@deltree:~$ cat $(which rs)

To all, there are several of these scripts, Aliens and so on. What we would
need is a sorta 'slapt-get' that would download from slackbuilds.
IMHO, the DVD-CD route should extend to 16gig USB.


--
maus
.
.
...

Grant

unread,
Dec 25, 2012, 7:26:07 AM12/25/12
to
Slackware is for thinking people, there *ubuntu and friends for
apt-get (or whatever they call it ;) workalike.

>IMHO, the DVD-CD route should extend to 16gig USB.

USB install is already provided for last few releases.

Grant.

Eyetee

unread,
Dec 25, 2012, 10:59:46 AM12/25/12
to
On 12-12-25 07:26 AM, Grant wrote:
>
> Slackware is for thinking people, there *ubuntu and friends for
> apt-get (or whatever they call it ;) workalike.

My problem is nailing down the thoughts I want to think with. :) The
thinking part is easy after you get that done.

I'm studying your script and might have some questions about it later
on. The package tree is so vast that I might die of old age anyway
before I finish inventorying my ideal OS configuration.

Eyetee

--
website: www.eyetee.org

Chick Tower

unread,
Dec 30, 2012, 3:08:26 PM12/30/12
to
On 2012-12-25, grey...@mail.com <grey...@mail.com> wrote:
> To all, there are several of these scripts, Aliens and so on. What we would
> need is a sorta 'slapt-get' that would download from slackbuilds.

Why do you want to build everything rather than install binaries?

To get things that are on Slackbuilds.org, you can use sbopkg. It's a
script that you can use from its menu system or from the command line.
That makes it about as easy as slapt-get, unless you want to update
everything at once.
--
Chick Tower

For e-mail: aols2 DOT sent DOT towerboy AT xoxy DOT net
0 new messages