 |
 |
 |
 |
| Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems. |

2nd November 2012, 04:32 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Help with Awesome.ks
Heyas
Me trying to get an AwesomeWM spin working.
Well, its (partly) working, but its not customized allthough i had entred code to the %post section.
And what confused me, its still US keyboardlayout although i had specified it to be sg (swiss german).
I do need to use copy a file, create a string and sed it afterwards, and using rpm to install a remote package.
How could i achieve this please?
What did not help:
http://fedoraproject.org/wiki/Anacon...llation_Script
http://www.linuxforums.org/forum/red...t-install.html
Any help/hint welcome.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 5th November 2012 at 11:47 PM.
|

2nd November 2012, 05:42 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Help with Awesome.ks
interesting. I don't see anything wrong with your keyboard specification. It should work.
But for your question about the %post section I have a note in my notes here about how to do somethng similar to what you are asking about.
In the %pre section this asks for system hostname from a virtual console, then sets up the network files in the %post section...
%pre section:
Code:
%pre
chvt 6
## Query for hostname, then write it to 'network' file
read -p "
What is my hostname?
" NAME /dev/tty6 2>&1
echo "NETWORKING=yes
HOSTNAME=${NAME}" > network
chvt 1
And in the %post to actually write the file out:
Code:
%post --nochroot
# bring in hostname collected from %pre, then source it
cp network /mnt/sysimage/etc/sysconfig/network
. /mnt/sysimage/etc/sysconfig/network
# force hostname change
/mnt/sysimage/bin/hostname $HOSTNAME
# setup variables for use in /etc/hosts
LONG=`/mnt/sysimage/bin/hostname`
SHORT=`/mnt/sysimage/bin/hostname -s`
IP=`/mnt/sysimage/usr/bin/host ${SHORT} | awk {'print $4'}`
echo "${IP}\t\t${LONG} ${SHORT}" >> /mnt/sysimage/etc/hosts
This may give you some ideas in what you are asking about
|

2nd November 2012, 06:18 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
I'll try this when i get home.
What is chvt 1?
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

3rd November 2012, 05:38 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Help with Awesome.ks
the chvt 1 and chvt 6 are where it changes the virtual terminal to grab the input that the user enters. then changes back to the one that anaconda is running on.
What I posted was just a general example showing how to do a few of the things you wanted to do, but is in no means meant to be what you need to use. You need to look through it and see if you can pull ideas from it to write your own %post section.
I didn't have a chance to do much thinking about what you are actually wanting to do, so haven't come up with specifics for your case. IT does give you a push in the right direction, though
|

3rd November 2012, 06:12 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Yes it does, and thats just what i wanted. Thank you.
Just wanted to know what the chvt does, as i havent come by it previously.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

4th November 2012, 01:31 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Help with Awesome.ks
The use of the chvt was one of the reasons I grabbed that example and put into my notes. I haven't seen many references to that command in kickstart files very much.
It's a normal command, though, not unique to kickstart. You can use it from a console instead of using the "ctrl-alt-Fx" key combination.
|

4th November 2012, 02:53 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Ok, when i started to extend the nonworking %pre, %post --nochroot, %post, but kept getting errors i decided to split up the sections.
Now i have this setup on the Laptop:
Code:
[simon@l670 ks]$ ls sea-Awesome
00_header 01_language 02_systemconfig 03_partitions 04_repos 05_packages 06_pre 07_post_nochroot 08_post 09_post_final
Of course i have a script that puts them together, as i cant build the spin on the large laptop, the kickstart gets exportet to my NAS.
Code:
..........................Kickstart generator (0.1) for project: sea-Awesome
Saving kickstart: sea-Awesome
File: /mnt/Public/Linux/Kickstarts/sea-Awesome-201211041546.ks
rm: cannot remove `/home/simon/.script-tools/configuration/ks/sea-Awesome/*~': No such file or directory
# | Parsing: 00_header...[WORK]..done.
# | Parsing: 01_language...[WORK]..done.
# | Parsing: 02_systemconfig...[WORK]..done.
# | Parsing: 03_partitions...[WORK]..done.
# | Parsing: 04_repos...[WORK]..done.
# | Parsing: 05_packages...[WORK]..done.
# | Parsing: 06_pre...[WORK]..done.
# | Parsing: 07_post_nochroot...[WORK]..done.
# | Parsing: 08_post...[WORK]..done.
# | Parsing: 09_post_final...[WORK]..done.
Parsed files of sea-Awesome [DONE]
Current ks is attached to this post
I assume that the error lies within either one or all of the %pre, %post --nochroot or %post sections.
The error output is this:
Code:
[root@localhost lm]# livecd-creator --config=/mnt/Public/Linux/Kickstarts/sea-Awesome-201211041546.ks --fslabel=sea-Awesome
warning: filesystem-3.1-2.fc18.x86_64: Header V3 RSA/SHA256 Signature, key ID de7f38bd: NOKEY
Installing: libgcc ################### [ 3/1109]
Installing: fontpackages-filesystem ################### [ 4/1109]
Installing: dejavu-fonts-common ################### [ 5/1109]
Installing: b43-fwcutter ################### [1070/1109]
Installing: shim ################### [1071/1109]
Installing: l10n-kickstarts ################### [1072/1109]
Installing: rpmfusion-nonfree-release ################### [1073/1109]
Installing: man-pages-de ################### [1074/1109]
error: unpacking of archive failed on file /usr/share/man/de/man2/_exit.2.gz;50967cce: cpio: open
error: man-pages-de-0.5-7.fc18.noarch: install failed
Installing: iwl135-firmware ################### [1075/1109]
warning: %posttrans(kernel-3.6.2-2.fc18.x86_64) scriptlet failed, exit status 127
warning: %posttrans(totem-1:3.6.0-2.fc18.x86_64) scriptlet failed, exit status 127
source-highlight-3.1.6-3.fc18.x86_64 was supposed to be installed but is not!
warning: %post(mdsplib-0.11-13.fc18.x86_64) scriptlet failed, exit status 127
/* EDIT:
Or do i have a think-error in one of the 0#_files?
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 5th November 2012 at 11:47 PM.
|

6th November 2012, 12:11 AM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Searched a bit and found a report that stated an error using updates repo while building a centos 6 spin.
http://bugs.centos.org/view.php?id=4978
After a reboot i could remove the temp files in /var/tmp.
Further removed ALL post & pre scripts, so the last thing used are the packages.
However, trying to build the ks on F17, it looks like:
Code:
[root@l670 ks]# livecd-creator --config /mnt/Public/Linux/Kickstarts/sea-Awesome-201211060044.ks
Error creating Live CD : Failed to find package 'libva-intel-driver' : No package(s) available to install
While the build on F18 (very same ks) still looks like the errors in above post.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 6th November 2012 at 12:17 AM.
|

10th November 2012, 02:08 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Ok good news, kickstart works again, after 2 regular updates of F18..
But a few questions arised:
* On boot i see plymouth-charge, on shutdown i see plymouth-solar which should be shown on boot as well.
* $liveiso/etc/skel/.confg/awesome gets created, but no files are in there
* While MOTD is written, changed in /etc/lxdm/lxdm.conf dont apply
PHP Code:
%post
#!/bin/bash
#
# Variables
#
cfg_skel=/etc/skel/.config/awesome
cfg_tar=http://sea.hostingsociety.com/files/awesome.tar.gz
script_tools=http://sea.hostingsociety.com/dev/script-tools-0.7.1-4.fc18.noarch.rpm
#
# Extract awesome configuration tarball
#
[ ! -d $cfg_skel ] && mkdir -p $cfg_skel
cd $cfg_skel && \
wget $cfg_tar && \
tar -axf $(basename $cfg_tar) && \
rm -f *.tar.gz
#
# Script-Tools
#
rpm -ivh $script_tools
yum install script-tools -y
#
# Message of the Day
#
cat > /etc/motd << EOF
Welcome to sea Awesome Desktop spin, based on $(cat /etc/system-release)
For more information, type: seaReadme
EOF
cat > /usr/bin/seaReadme << EOF
\#!/bin/bash
echo " sea Awesome Desktop 0.1, $(cat /etc/system-release|awk '{print $1" "$3}')
-----------------------------------------
╔══╗ ╔═══╗ ╔═══╗
║ ║ ║ ║
╚══╗ ╠═══╝ ╔═══╣
║ ║ ║ ║
╚══╝ ╚═══╝ ╚═══╝
To install this spin type either:
* anaconda
* liveinst
To set up upon a minimal installation,
please type:
st set up
For more information about Script-Tools,
use (TODO): man script-tools"
sleep 3
EOF
chmod +x /usr/bin/seaReadme
#
# Login Manager
#
# autologin=dgod
sed s/"# session=/usr/bin/startlxde"/" session=/bin/awesome"/g -i /etc/lxdm/lxdm.conf
sed s/"bg=/usr/share/backgrounds/default.png"/"bg=/etc/skel/.config/awesome/img/space_1024x600.png"/g -i /etc/lxdm/lxdm.conf
sed s/"bottom_pane=1"/"bottom_pane=0"/g -i /etc/lxdm/lxdm.conf
#
# Grub Changes
#
ln -sf /etc/skel/.config/awesome/img/earth_1024x600.jpg /usr/share/backgrounds/splashscreen.jpg
cat /etc/default/grub > /etc/default/grub.$(date +'%y%M%D')
search=$(cat /etc/default/grub|grep THEME=)
[ "" = "$search" ] && search=$(cat /etc/default/grub|grep GRUB_BACKGROUND=)
repl="GRUB_BACKGROUND=/usr/share/backgrounds/splashscreen.jpg"
sed -i 's|$search|$repl|g' /etc/default/grub
#grub2-mkconfig -o /boot/grub2/grub.cfg
#
# OS Loading screen: Plymouth - Solar
#
/usr/sbin/plymouth-set-default-theme solar --rebuild-initrd
%end
Any hint is very appreciated.
Thank you in advance.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 10th November 2012 at 02:13 PM.
|

18th November 2012, 04:01 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Ok figured F18 has its buildroot no longer in /mnt/sysimage but a temp folder like this /var/tmp/imgcreate-[RNDSTR].
To have a good chance, i currently use a workaround like this:
Code:
vt=/var/tmp
tmproot=$(ls $vt|grep imgcreat)
for tmp in $tmproot;do
PRE=$vt/$tmp/install_root
....
....
done
Hope this is of help for others creating kickstart spins on a F18 host.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

18th November 2012, 07:47 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Help with Awesome.ks
What the heck?
Why would they move where it mounts things?
Looking kinda fishy to me. They strip things out of Anaconda that people use, but continually tell you that it's still possible using kickstart... Then they move things around so that existing kickstart files don't work... And add to that, system-config-kickstart doesn't work in F18, hasn't for quite awhile due to a python module no longer existing (and with the move around of things, I'll bet a kickstart file created in F17 with system-config-kickstart won't work as well)
So.. How in the heck is someone supposed to get things to work properly in F18?
Edit:
And yes, a bug was filed over a month and a half ago about system-config-kickstart not workiing, by several people, but not a single response from any of the developers...
Last edited by DBelton; 18th November 2012 at 07:50 PM.
|

18th November 2012, 10:43 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Help with Awesome.ks
Oh, now with this 'fix' of mine, it works quite awesome
The only thing i'm 'currently' working on is the awesome configuration/tweaks.
The current tarball, which will be downloaded by the KS, is pretty much 'uptodate'.
Note, i build the iso on a F18 host, you might need to enable the Rawhide repo in the according section.
I tried to implement an autofix, but dont know if it works... you might need to modify the "%post --nochroot" section, looking for "PRE"...
On my hw, this ks is working as expected.
The Desktop/WM tweaking is done via a tarball on my homepage. So anytime after i updated that tarball, rerunning the ks will result in a more 'tweaked' WM.
EDIT:
First file was 'missing' lxdm, and had some tweak issues for some weird reason.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 19th November 2012 at 07:20 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Awesome F16!!
|
Cardale |
Reviews, Rants & Things That Make You Scream |
11 |
27th November 2011 10:24 PM |
|
Awesome doesn't work
|
CryptKeeper |
Installation and Live Media |
4 |
31st July 2011 03:17 PM |
|
Help Installing Awesome
|
tonit |
Installation and Live Media |
2 |
27th December 2009 04:30 PM |
|
F10 B is Awesome!
|
matt12 |
Alpha, Beta & Snapshots Discussions (Fedora 10 Only) |
3 |
3rd October 2008 12:03 AM |
|
FC2 Forums are awesome
|
rendered_one |
Suggestions & Feedback |
2 |
27th May 2004 06:42 AM |
Current GMT-time: 07:54 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|