[SOLVED] Slackware 14.1 32bit system tarball/stage3 image/chroot image/bootstrap image
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 14.1 32bit system tarball/stage3 image/chroot image/bootstrap image
I need an image containing a Slackware installation (the root folder that contains the bin, etc, var, usr, ... folders). I've lost some hours on Google and I was unable to find such image.
Why do you need an image? Just decide which packages you want to install and use installpkg with the --root switch to set to the location of your chroot folder.
Why do you need an image? Just decide which packages you want to install and use installpkg with the --root switch to set to the location of your chroot folder.
I don't have a Slackware installation. That's why I need an image... to install Slackware... inside a container.
It's the oldest distro still going on. I'm pretty confident this image must exist.
I just noticed you container is minimal, which is fine, but doesn't come with the standard Slackware tools (such as installpkg, removepkg, upgradepkg, makepkg, explodepkg, pkgtool), which makes me doubt if I can refer to this container as a Slackware container.
Anyway, I'll hunt the required packages and extract them. Thanks for the help so far. I think I can manage from here.
if you want to use installpkg on another system, you need just the pkgtools package (it's a tarball, so you can easily extract it).
To expand on that for the benefit of the OP or others reading this, just fetch the installpkg script. Make it executable and use it to install your selected Slackware packages from your host system using an appropriate --root option. You will get a warning about using a non tar version 1.13 version. This is indeed not ideal but it should be good enough for purposes like setting up a chroot/LXC. Non 1.13 tar is more of an issue for removepkg and makepkg.
If you want you could remove the -U and -l options from the tar extraction in installpkg, as their meanings have changed in later versions of tar. Here is a patch:
Code:
--- installpkg.orig
+++ installpkg
@@ -93,22 +93,7 @@
# So that we know what to expect...
umask 022
-TAR=tar-1.13
-$TAR --help 1> /dev/null 2> /dev/null
-if [ ! $? = 0 ]; then
- TAR=tar
-fi
-if [ ! "$(LC_MESSAGES=C $TAR --version)" = "tar (GNU tar) 1.13
-
-Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-Written by John Gilmore and Jay Fenlason." ]; then
- echo "WARNING: pkgtools are unstable with tar > 1.13."
- echo " You should provide a \"tar-1.13\" in your \$PATH."
- sleep 5
-fi
+TAR=tar
usage() {
cat << EOF
@@ -519,7 +504,7 @@
cat $DESCRIPTION | grep "^$shortname:" >> $ADM_DIR/packages/$shortname 2> /dev/null
fi
echo "FILE LIST:" >> $ADM_DIR/packages/$shortname
- ( cd $ROOT/ ; $packagecompression -dc | $TAR -xlUpvf - ) < $package >> $TMP/$shortname 2> /dev/null
+ ( cd $ROOT/ ; $packagecompression -dc | $TAR -xpvf - ) < $package >> $TMP/$shortname 2> /dev/null
if [ "$(cat $TMP/$shortname | grep '^\./' | wc -l | tr -d ' ')" = "1" ]; then
# Good. We have a package that meets the Slackware spec.
cat $TMP/$shortname >> $ADM_DIR/packages/$shortname
Save the above as installpkg.patch in the directory where you saved installpkg and issue the following command:
Code:
patch < installpkg.patch
If you are interested to find out more about why Slackware uses GNU tar 1.13, read this. This more recent post might also be interesting.
doesn't come with the standard Slackware tools (such as installpkg, removepkg, upgradepkg, makepkg, explodepkg, pkgtool), which makes me doubt if I can refer to this container as a Slackware container.
Anyway, I'll hunt the required packages and extract them. Thanks for the help so far. I think I can manage from here.
You can get these here. Install it with installpkg from your host system, as explained in my previous post, or from within the lxc.
I just noticed you container is minimal, which is fine, but doesn't come with the standard Slackware tools (such as installpkg, removepkg, upgradepkg, makepkg, explodepkg, pkgtool), which makes me doubt if I can refer to this container as a Slackware container.
Anyway, I'll hunt the required packages and extract them. Thanks for the help so far. I think I can manage from here.
I don't know where you're actually looking for them, but all the commands you cited are in the /sbin directory of the container filesystem.
As a reminder, in Slackware 14.1's installer instead:
Code:
/tmp$ ls -l initrd-Slackware-14.1/bin/tar*
lrwxrwxrwx 1 didier users 8 mai 11 11:28 initrd-Slackware-14.1/bin/tar -> tar-1.13
-rwxr-xr-x 1 didier users 122396 avril 14 2011 initrd-Slackware-14.1/bin/tar-1.13
/tmp$
I don't know why Pat made this change, but he certainly knows
Stuart also knows.
Quote:
Originally Posted by drmozes
It appears that it was my idea to wipe out the latest version of tar and symlink tar-1.13 to tar anyway (seemed optimal and efficient 6 years ago! ;-) ). I've added it to my installer to do list - Pat will most likely accept this change as it's non intrusive - although you'll only know if it appears ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.