LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   slack14.2 - getting tagfiles to work... (https://www.linuxquestions.org/questions/slackware-installation-40/slack14-2-getting-tagfiles-to-work-4175621223/)

maelcum 01-08-2018 04:29 PM

slack14.2 - getting tagfiles to work...
 
Hello, my name is Wolf from Germany and I am a newbie... <:*|

I'm currently making my first steps with slackware. slackwarearm-14.2 that would be, on different Raspberry Pi versions (1 and 3) as well as slackware64-14.2 in VMs on macOS and Windows.

My goal is to replace raspbian/debian on the RPis with a minimal installation. A GUI is not necessary, so usually only the A, AP, D, L and N packages are installed. That works nicely and without a hitch, but could be slimmed down by leaving out things.

This customization of the installation could be done with tagfiles, I've learned. There are the two options in the SELECT PROMPTING MODE of setup: "custom" ad "tagpath".
I cannot, for the life of me, get this to work. Here I would be very grateful for a hint of what to look for, an URL to some in-depth instructions (or even a newbie guided tutorial)...



What have I tried?

To verify that tagfiles _are_ the way to go, I've set up a mirror of a ftp server and edited the ".../?/tagfile".
This works. \o/

I've copied and edited the ".../?/tagfile" to ".../?/tagfile.srv" and tried the "custom" prompting mode, entering ".srv" (without quotes) in the dialog.
This did not work.

I've copied all tagfiles in their respective directory unter ex: "slackware64-14.2/tagfiles/a/tagfile" and tried the "tagpath" prompting mode, entering "slackware64-14.2" as path (and all other ways I could think of that would make sense).
This did not work.

I've copied the "tagfiles"-directory to "slackware64-14.2/slackware64/" and tried the "tagpath" prompting mode again, again with all possible ways of "spelling".
This did not work.

The "tagfiles"-directory was copied to an NFS share. Then a VM was booted from the installation ISO. Instead of doing "setup", "pxesetup" was used, and the network started (DHCP). pxesetup was exited and after verification that the network was working, a /mnt/nfs-directory was created and the NFS share was mounted. It was verified that the NFS-mount was working and that it was possible to 'cd' to the tagfiles-directory on the external mount. Noted the pwd. Now setup was started, the tagpath prompting mode selected and the noted path entered.
This did not work.


Summary:
The only thing currently working is a local mirror where the tagfiles are edited directly.
This allows for only one configuration. All other options to not work. Sorry for the long post, but I wanted to give as much information as possible...
Any advice for me?

lilianfornea 01-09-2018 12:10 AM

Slackware Minimum Install - YouTube Tutorial

Slackware Series: Episode 07 - custom installation tagsets and CLI-fu - 1 and half hour tut...

maelcum 01-09-2018 01:55 AM

Thanks lilianfornea!

I've watched the second YT video. If somebody has basic shell knowledge, skip to
- 50:00 to see what he is doing (making an iso from his modified tagfiles)
- 1:05:00 to see him mounting the iso (after booting setup) and
- 1:09:15 to see him use the prompting option tagfiles and entering the path to his mounted iso.
Beyond that, there is nothing more related to tagfiles.

Unfortunately that does not solve the problem on my side. Maybe it's a difference between freeslack (what is used in the video) and vanilla slackware, though I doubt it.
I'll keep trying. There is surprisingly little documentation about this (that I've found so far)...

keefaz 01-10-2018 08:46 PM

Did you try this wiki?
https://www.slackwiki.com/Tagfile_Install
(replacing all instances of slackware directory name with slackware64 for slackware 64bits version)
https://www.slackbook.org/html/packa...-tagfiles.html

maelcum 01-11-2018 03:49 AM

more details about custom-option not working
 
Hello keefaz,

thanks for your efforts! Yes, I came across the wiki. That was one of the few mentions of "tagfile" that I was able google.

I've tried a couple more times the last two days but still cannot get the slackware setup to honor my "tagfiles" or "custom" option. *sad*
I was able to document the error of the slackwarearm installation better, though. When choosing the "custom" prompting option, setup starts doing it's thing, but somehow messes up. The screenshot shows how it looks (it just started installing, and from here on the error message keeps repeating until all packages have been interated...

https://imagebin.ca/v/3noeUZ6FB1aO

keefaz 01-11-2018 06:33 AM

If you have an usb key, or nfs mount
Boot from install media
create directory /tagfiles
mount /dev/sdc1 /tagfiles # example for usb key with corresponding device files see dmesg
mount -t nfs server:/path/to/shared /tagfiles # nfs

run setup, configure what you want (partitions, keymap etc)
then choose INSTALL, choose tagpath and enter: /tagfiles

Note: /tagfiles should be the root directory for tagfiles packages series eg:
/tagfiles/a /tagfiles/ap /tagfiles/d etc...

Else you have to enter the subdirectory that contains tagfiles packages series eg:
tagpath: /tagfiles/slackware64 (for example)

rk4n3 02-12-2018 06:59 PM

Quote:

Originally Posted by maelcum (Post 5803984)
I've watched the second YT video. If somebody has basic shell knowledge, skip to
- 50:00 to see what he is doing (making an iso from his modified tagfiles)
- 1:05:00 to see him mounting the iso (after booting setup) and
- 1:09:15 to see him use the prompting option tagfiles and entering the path to his mounted iso.
Beyond that, there is nothing more related to tagfiles.

Unfortunately that does not solve the problem on my side. Maybe it's a difference between freeslack (what is used in the video) and vanilla slackware, though I doubt it.
I'll keep trying. There is surprisingly little documentation about this (that I've found so far)...

Hi Maelcum ... I made the video you're referring to.

I have used the sequence of steps shown in the video successfully for years on stock slackware, and it works in FreeSlack (as expected) because there's no change in FreeSlack around the installer's behavior.

I have never tried Slackware for ARM, so I can't attest to whether the same can be said for the installer in that scenario.

In my experience, there are two critical items, easy to mess up, that have to be done correctly for the tag set to be honored. The first is that the directory structure + files has to be faithfully reproduced with no syntax errors in the files, and the second is the path to the custom tag set has to be specified correctly pointing to their already-mounted-and-visible location. As I mentioned in the video, the prompt for path gives you a clue about the exact placement of the directory structure relative to the path you have to provide.

I hope this clarification can be of some help - I'd be happy to try to zero in with more detailed feedback, if you would like to respond with further questions.

Sincerely,
Matt

maelcum 02-16-2018 04:01 PM

Thank you Matt, for your support.

What you did - if I remember the video correctly - was to modify the tagfiles and burn them to an iso, which you mount and install from. This is not tackling the problem I'm having.
I _have_ been successful in mirroring the slackware ftp server to a local machine, modifying the tagfiles there and installing from that share. That was described as the first option in my original post and in the summary.
But as soon as I rename the tagfiles from, say, tagfile to i.e. tagfile.srv, tagfile.clt and tagfile.lpt this does not work. During the installation I choose the custom prompting mode, but the installation routine does not pick up the tagfile.<XYZ>.
I've made more tests and am pretty sure that this is an error in the installation routine of the arm version of slackware. I'm not experienced enough to fix it myself, so I've just duplicated the local mirror three times (what a waste of space) and edited the individual tagfiles. During the installation I then choose the mirrors with the configuration I need. An ugly workaround at best, but it works.

There has been a new release of the sarpi installer (on the same day you posted) but I was not yet able to test that. Maybe the problem is fixed there.

Anyway, I found it extremely nice and helpful of you to post and wanted to let you know that I'm not ignoring your helpful answer. :)

MisterL 04-02-2018 05:53 AM

Seems I'm, a little late, but I was testing tagfiles, too, after watching Matt's video (Thanks!).
And I ran into the same problem with custom-named tagfiles not being recognized. I was able to reproduce this on x64-current as well, so it doesn't seem like an arm-specific problem to me.

Quote:

Originally Posted by maelcum (Post 5820557)
I've made more tests and am pretty sure that this is an error in the installation routine of the arm version of slackware. I'm not experienced enough to fix it myself, so I've just duplicated the local mirror three times (what a waste of space) and edited the individual tagfiles. During the installation I then choose the mirrors with the configuration I need. An ugly workaround at best, but it works.

I have put my tagfiles in another folder on my local mirror and just replace them when I'm installing new. Rsyncing the mirror with an official mirror resets the tagfiles to default. This is okay for my testing, maybe it helps to save a few GB.


All times are GMT -5. The time now is 08:20 AM.