
| This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
| Pages: (2) 1 2 ( Go to first unread post ) | ![]() ![]() ![]() |
| AndrewSerk |
Posted: Apr 18 2012, 01:40 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Well that is what you would do with a installation type .ks and a install DVD. The $LIVE_ROOT/ is outside the compressed file system of the livecd and any file you put there can be accessed without running the livecd but by just mounting the disk. I just can't figure out how that would work?? The repo lines in the .ks would have to point to the livecd but the livecd doesn't contain rpm packages or a repo but a already installed file system that has been compressed. It may be possible to do that with a livecd but I just can't think of how that could work. But if you do not really need a livecd and are just concerned with the install, then making a installation type kickstart and building a install DVD would be way easier. You could use the system-config-kickstart package to help build the .ks and just check/uncheck boxes and add the %post and %post --nocheckroot lines you need. This post has been edited by AndrewSerk: Apr 18 2012, 01:47 AM |
|||
| ericl42 |
Posted: Apr 19 2012, 03:05 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
I don't care at all about the user being able to log into the live CD. As you can see in my example, I already have all of the boot to live CD options removed. I am only allowing them to go directly to the install screen. So what I want to happen is:
1. They put int he CD to the server. 2. It install the entire OS the way I have it configured. Maybe allowing them a few screens to modify the partitioning, but no root passwords, time zones, etc. 3. After it installs, it boots to the hard drive and has all of the custom settings I told them. I just need to keep the file under 700 megs. So I don't care about the "live cd" aspect of it. I just need toe lower space. |
|
| AndrewSerk |
Posted: Apr 19 2012, 04:23 PM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
I thought that might be the case, on the 27th of last month. I posted:
But got no response, so I figured you needed to boot the server and run something in the background before install or something similar that caused you to need a livecd. Anyway, you will find that building a install DVD and including a ks will allow for "asknetwork" to work along with many other ks commands that will not work for a livecd ks. Here is a like for a how to based on RHEL/CentOS but should give you a pretty good idea of what is involved with making a install DVD/cd that includes your custom kickstart.: http://markliggett.wordpress.com/2009/11/30/custom-installation-centosrhel-dvd/ Hope this helps, |
|||
| ericl42 |
Posted: Apr 30 2012, 09:26 PM
|
|||
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Ok... back from a week vacation and time to try to remember what I was working on! I tried the following command from the link you provided.
This works if I keep all of the packages in the /root/customdvd/Packages/ directory. However if I keep everything in there, it is 3.4 gigs big, which I obviously don't want or need. Ideally it would be under 700 for a CD. So i tried to delete some stuff that I wasn't going to have installed on the CD such as openoffice, eclipse, etc. but the installation process is not happy at all about that. It hangs on "Starting installation process". I deleted ~30 packages so I guess I'll try to scale it back and only delete a few at a time and see if it works. I love how the DVD install works as it goes right through everything without prompting for any information. If only I could get the livecd image to do that I'd be $$$!!!! |
|||
| AndrewSerk |
Posted: May 1 2012, 04:45 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Hi ericl42,
Hope you had a peaceful relaxing vacation If you remove a package from the install DVD you have to remove the package's lines in the comps.xml for the DVD to still function properly. I knew you would like the way a install .ks functions better than the livecd install. I too also wish there was a way to get a livecd install to function in that manor without a complete rewrite of anaconda or if revisor actually worked ( I tried to have revisor build a DVD based on a .ks but it failed) that sure would make building a install DVD easier. Hope this helps, EDIT: If I can find some time I will build "pungi" the old tool to create anaconda based installation trees/isos of a set of rpms and report if that works. This post has been edited by AndrewSerk: May 1 2012, 05:01 PM |
|
| ericl42 |
Posted: May 2 2012, 03:40 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Yeah, after I posted my last message I found my stupid error about not redoing the xml files. I have the DVD down to around 1 gig right now which is a lot better. Some of my kickstart script stuff isn't working the way it previously was so I have to make sure all of my paths are correct. We shall see.
|
|
| AndrewSerk |
Posted: May 2 2012, 08:15 PM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
I am sure you will get it figured out since you have already demonstrated the necessary skills ![]() If for some reason you get stuck, don't hesitate to post back and I or someone will try to help. Andrew |
|||
| ericl42 |
Posted: May 8 2012, 02:52 PM
|
|||
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Hello,
As much as I like the DVD walk through process, it just isn't going to work for me. I like the small size of the livecd and everything I've done is working good with it right now. Below is my latest and greatest ks script. It's working pretty good. I force it to go into the install, it creates accounts, modifies files, and does a bunch of other stuff. I have a few minor issues now that are bugging me that I'm trying to working through. 1. I've given up on the livecd using the ks file to autostep through all of the options. This is fine, however I would still like the install to skip the section where it prompts for a root password. Because I don't want the users to have the root password. If I can't find a section where I can skip this within the live cd or a command line option, I may just have to overwrite the root password when the server boots up for the first time. 2. I wish it prompted me for network configuration during the initial install. I know if I turn firstboot on it will ask me but then it will also ask for additional users and what not. Which I don't want. 3. I've modified a lot of the application menu to take away users being able to access them easily. However I can't figure out how to get rid of those stupid quicklaunch icons!!! Obviously you can right click and remove them but I gotta find a config file within the schemes or a command line tool where I can auto remove those! Thanks again for all of your help and I hope the kickstart script below may help someone else in the future. The overall image is around 1.4 gig installed and 608 MB in the ISO.
|
|||
| AndrewSerk |
Posted: May 8 2012, 05:53 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Hi ericl42,
When you say "quicklaunch icons" do you mean the the icons on the desktop? If so, you can try to remove the lines in live-base.ks that creates the desktop icons. If anyone might be able to provide the answers to the first two issues I would expect it to be Dr. Urs Beyerle. Dr. Urs Beyerle seems to be the maintainer of http://www.livecd.ethz.ch/ . I have never tried to contact him but he does ask for feed back via e-mail or Scientific-Linux-Users mailing list.. Here is a public page with his contact info: http://www.iac.ethz.ch/people/beyerleu/ I don't think it would hurt to ask him if he knows of a way to achieve what you want. Hope this helps, Andrew EDIT: Since SL uses the Fedora livecd-tools these people may be able to provide some insight. People (developers of livecd-tools) that may be able to provide some insight : Contributors DavidZeuthen - Primary developer and maintainer of HAL and OLPC contributor JeremyKatz - Fedora Ninja. Adds backend for installing from a live image into Anaconda DouglasMcClendon - LiveOS device mapper trickster Fedora Live image users and developers can participate and contribute in the discussions happening in the Fedora Live CD list. This post has been edited by AndrewSerk: May 8 2012, 06:22 PM |
|
| ericl42 |
Posted: May 8 2012, 06:32 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Thanks for those contacts. By quick launch icons I mean the icons at the gnome-panel at the top of the screen.
It normally has applications and a few other drop down boxes to get to various things. Then on the far right is the clock. The icons in between those are the ones I want gone. By default is has Firefox, Evolution, and Terminal. Even if you uninstall evolution or Firefox, the icon stays there. |
|
| AndrewSerk |
Posted: May 8 2012, 08:13 PM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Doh, I knew that . I believe the quick launch icons can be removed with "gconftool-2" from the command line (%post). I will look into what the commands would be to remove those icons and post back my findings. |
|||
| Nathan |
Posted: May 8 2012, 10:21 PM
|
|
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 290 Member No.: 928 Joined: 15-October 11 |
Ho-hum. Nevermind, nothing to see here.
This post has been edited by Nathan: May 8 2012, 11:08 PM |
|
| AndrewSerk |
Posted: May 9 2012, 12:31 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Hi ericl42,
Here is the gconftool-2 lines I came up with to remove the three quick launch icons (firefox,terminal and evolution). Not exactly sure if I used the "correct" string or if there is another string that might be better, but the strings I used worked fine here.
Hope this helps, This post has been edited by AndrewSerk: May 9 2012, 12:32 AM |
|||
| ericl42 |
Posted: May 9 2012, 02:45 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Ahh you are awesome. I looked at that tool but was being stupid about what string I should use. I also spoke with Urs and this is what he told me about the "skipping various sections during the install". So I'll start digging through that now.
------------------------------------------------------ This is more an anaconda question than a LiveCD one. Because the installation inside the LiveCD is done with anaconda. The command executed is (see sl6XX-live-base.ks) /usr/sbin/liveinst noswap rpm -qf /usr/sbin/liveinst anaconda-13.21.149-1.sl6.i686 Just have a look inside /usr/sbin/liveinst. I think it's basically running /usr/sbin/anaconda --liveinst --method=livecd://$LIVE_BLOCK $INSTLANG I would suggest to search into the direction of how to customize anaconda install procedure. For example see /usr/sbin/anaconda -h |
|
| AndrewSerk |
Posted: May 9 2012, 04:02 PM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
I am glad Dr. Beyerle is approachable and seems like he has pointed you in the right direction. It would be very nice if a rewrite of anaconda is not necessary.
What I think would be really cool is if you could just edit /usr/sbin/liveinst and change the anaconda run line to:
That sure would make it simple if that works. Curiously awaiting your solution/findings, Andrew EDIT: I edited /usr/bin/liveinst and changed the line to match the above from a running live session but still got the prompts. This post has been edited by AndrewSerk: May 10 2012, 04:38 PM |
|||
| ericl42 |
Posted: May 10 2012, 04:53 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Yeah I did the same. I also modified that line to add the KS=/root/mykickstart.ks to see what would happen. What this did was make the live cd boot directly into live mode with all of the options. Then from there, you had the "install to hard drive" option on the desktop and unfortunately that prompted you for all of the information as well.
|
|
| AndrewSerk |
Posted: May 12 2012, 03:44 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
I hope to be able to look into this further today and will post back any findings.
It might be a good idea to ask "JeremyKatz - Fedora Ninja. Adds backend for installing from a live image into Anaconda" for some anaconda "hack" ideas. |
|
| AndrewSerk |
Posted: May 15 2012, 05:06 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Just thought I would give you a heads up on pungi. I was able to rebuild pungi with "rpmbuild" from http://koji.fedoraproject.org/koji/buildinfo?buildID=200528 . The only dep I was missing was repoview that I got from http://koji.fedoraproject.org/koji/buildinfo?buildID=274430.
I used system-config-kickstart to create a kickstart and used that kickstart as a config file for building the install media with pungi. The iso build went well and the package list only contained the the packages from the kickstart. Pungi works well here and might be a good option for you. Hope this helps, |
|
| ericl42 |
Posted: May 16 2012, 04:04 PM
|
|
|
SLF Rookie ![]() Group: Members Posts: 18 Member No.: 1393 Joined: 21-March 12 |
Got tied up with a few other things and haven't had much time to look at this lately, but I will definitely give Pungi a try. Thanks!
|
|
Pages: (2) 1 2 |
![]() ![]() ![]() |