LinuxQuestions.org
Register a domain and help support LQ
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 03-25-2013, 10:09 AM   #16
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled

Ok, I'm confused now. Are you saying you want to modify the installer? are you trying to do a batch install on a lot of systems?
I wouldn't mess with the install CD. Doing it yourself is easier and cleaner.
 
Old 03-25-2013, 10:56 AM   #17
blackv1rus
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: slackware
Posts: 54

Original Poster
Rep: Reputation: 4
Well... yes I wanted to make a bootable distro based on slack but with grub intead of lilo, and the slack installer is pretty good for my needs, the only problem(not really one) is lilo :-p
 
Old 03-25-2013, 11:59 AM   #18
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled
Since they are both slack packages, I would think it would be a pretty simple fix. Do you have the source for the installer utility?
I imagine all you would have to do is replace the lilo package location with the grub location.
 
Old 03-25-2013, 12:03 PM   #19
blackv1rus
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: slackware
Posts: 54

Original Poster
Rep: Reputation: 4
this is what I was thinking about, but I found every part of the configuration on the script files located on the source of the installer, but i can't find the lilo installation part on the scripts... :-/
 
Old 03-25-2013, 02:14 PM   #20
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
Quote:
Originally Posted by blackv1rus View Post
But suppose I wanted the user to be able to choose what to do during the installation, like it happens when you get to the boot loader screen on installer. then I have to find out where it is among these scripts, consequently edit it to grub syntaxes.
If I understood Didier's post correctly, you need to add an installer script in the GRUB package of Slackware. You should be able to look at the LILO package to see that script for LILO.

The LILO script asks if you want to install LILO. You should be able to answer no to that script during setup.

If you add an installer script to GRUB's package then you should be able to answer yes to that script during setup to install GRUB. That does not require changing the Slackware setup script, only adding a script to the GRUB package.

The Slackware setup could be changed to ask which boot loader to install when there is more than one package installed. Then have Slackware setup define an environment variable that the GRUB and LILO scripts (in their packages) check. If the environment variable is set, skip asking the question in the script and either install the boot loader package (or not) based on the environment variable.

The environment variable could be set like this in setup.
  • Does not exist (no boot loader specified)
  • NONE (do not install any boot loader)
  • LILO (install LILO)
  • GRUB2 Install GRUB2
  • GRUB (install GRUB)

The setup script can provide choices based on which boot loaders are installed, or ask about all of them and force the package to be installed for the selected boot loader. The setup script does not install the boot loader. It only asks which boot loader should be installed and then makes sure the package has been installed. The script in each boot loader package does the installation of the boot loader.

In each boot loader package the environment variable might be used like this.
  • If variable does not exist, ask the question about installing this bootloader.
    If answer is yes, set variable to this boot loader
  • If variable is set to this boot loader install this boot loader
 
1 members found this post helpful.
Old 03-25-2013, 03:02 PM   #21
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,679

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
Quote:
Originally Posted by Erik_FL View Post
If I understood Didier's post correctly...
Of course you do

@blackv1rus: please re-read my post #7.

There is nothing lilo-related in the installer. Let's make a long story short:
(during installation): installation of packages, some of them, including lilo, writing configuration scripts in /var/log/setup in the new Slackware system
(in the installer): /usr/lib/setup/SeTconfig => "execute all executable scripts found in /var/log/setup in the new Slackware system" (including setup.liloconfig is present)

So as Erik told you, just write setup.grub and grubconfig scripts with behavior inspired from setup.liloconfig and liloconfig respectively and have the former written in /var/log/setup during installation of your new grub package.

Of course you'll need to have grub installed before SeTconfig is executed for that to work (you'll need to take of that too as packages in /extra are not initially installed in a genuine Slackware).

PS you will quickly realize yourself how much work is needed to write grubconfig

Last edited by Didier Spaier; 03-25-2013 at 03:05 PM.
 
1 members found this post helpful.
Old 03-25-2013, 03:45 PM   #22
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 453

Rep: Reputation: Disabled
Quote:

PS you will quickly realize yourself how much work is needed to write grubconfig
So true. Lilo is nice and simple.
 
Old 03-25-2013, 04:35 PM   #23
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,679

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
Quote:
Originally Posted by mreff555 View Post
So true. Lilo is nice and simple.
That was not my the point, as I think that difficult level/amount of work needed to write grubconfig or liloconfig from scratch are similar.
 
Old 03-25-2013, 05:23 PM   #24
blackv1rus
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: slackware
Posts: 54

Original Poster
Rep: Reputation: 4
Guys you win :-) I was reading about it the whole day and I got to the conclusion that it is simpler and safer to keep things as is. now the next step is to do a custom installation with cinnamon and get rid of KDE, Games, the Linux FAQs, Emacs and then add some custom packages.

As far as I know I can do this editing the maketag.sh and the setup script... or Am I wrong?
 
Old 03-25-2013, 05:45 PM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
The first thing you would have to do is to get Gnome 3 running on Slackware, after that you can install Cinnamon, only then I would think about removing packages.
Have fun with that, you might want to have a look at the GSB project for Gnome 3, but when in the future Gnome 3 becomes hard dependent on systemd you will run out of luck anyways, unless you also plan to get that running on Slackware.

Seeing all the changes you want to make I would recommend to rethink if Slackware is the base you want to use for your project.
 
Old 03-25-2013, 05:45 PM   #26
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,679

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
As this is actually a different topic I'd suggest you devote it a new thread.
 
Old 03-25-2013, 07:11 PM   #27
blackv1rus
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: slackware
Posts: 54

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by TobiSGD View Post
The first thing you would have to do is to get Gnome 3 running on Slackware, after that you can install Cinnamon, only then I would think about removing packages.
Have fun with that, you might want to have a look at the GSB project for Gnome 3, but when in the future Gnome 3 becomes hard dependent on systemd you will run out of luck anyways, unless you also plan to get that running on Slackware.

Seeing all the changes you want to make I would recommend to rethink if Slackware is the base you want to use for your project.
I've managed to install Cinnamon on Slackware, it is not so tuff as the whole gnome 3, a bit different, and yes i had to install systemd and other libs to get it running properly, but at the end it was faster then KDE, its also lighter. I think i could do a tutorial explaining how I did it.
 
Old 03-25-2013, 07:14 PM   #28
blackv1rus
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: slackware
Posts: 54

Original Poster
Rep: Reputation: 4
maybe LFS would do the job but then I will need a installer... make it bootable...
 
Old 03-25-2013, 08:37 PM   #29
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 583

Rep: Reputation: 129Reputation: 129
Or you could make a system to your liking and create a image. Assumed that the target machine are reasonably alike you can create a simpler install script.
 
Old 03-25-2013, 08:43 PM   #30
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
If you consider LFS as an option, it would be interesting to know why you have chosen Slackware as the base for your project, not something with a fully scriptable installer like Debian.
 
  


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
GRUB - only Centos installer is able to install right ? Vilius Red Hat 4 04-04-2009 05:39 AM
GRUB - only Centos installer is able to install right ? Vilius Linux - Software 2 03-07-2009 06:38 AM
Modifying Slackware 12 installer, replacing lilo with grub zomane Slackware 2 04-05-2008 05:19 AM
GRUB disk numbering is different from SUSE installer pjo22 Linux - Newbie 4 06-11-2006 06:18 PM
SuSe 9.1 installer stops in Grub on first boot alancook Linux - Newbie 1 07-24-2004 08:16 AM


All times are GMT -5. The time now is 11:13 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration