TWiki
>
LinuxSupport Web
>
Slc6LiveHowto
(2013-03-22,
ThomasOulevey
)
(raw view)
E
dit
A
ttach
P
DF
---+ Create a Live CD UPDATE Feb 2013 available images : * CF_SLC_62_LIVE * CF_SLC_63_LIVE * CF_SLC_64_LIVE ---++ Install livecd-tools and patch it. * Install livecd-tools from scientific linux 6 repository (Not SLC(soon:) and redhat one's are broken) * Patch live.py __write_dracut_conf function: <verbatim> def __write_dracut_conf(self, path): if not os.path.exists(os.path.dirname(path)): makedirs(os.path.dirname(path)) f = open(path, "a") f.write('filesystems+="' + self.__extra_filesystems() + ' "\n') f.write('drivers+="' + self.__extra_drivers() + ' "\n') f.write('add_dracutmodules+=" dmsquash-live "') f.close() </verbatim> * Edit kickstart file if you want to add additional package. [[%ATTACHURL%/slc62-live-base.ks][slc62-live-base.ks]] * Generate livecd : <verbatim> LANG=C time livecd-creator --config=slc62-live-base.ks --fslabel="SLC6-LiveCD" --tmpdir=/home/livecd/tmp </verbatim> ---+ USB booting If your USB device is /dev/sdb1 <verbatim> livecd-iso-to-disk SLC6-LiveCD.iso /dev/sdb1 </verbatim> A lot of option are avaialable: <verbatim> livecd-iso-to-disk --help </verbatim> ---+ Add to aims2 ---++ Generate initrd / vmlinuz <verbatim> livecd-iso-to-pxeboot SLC6-LiveCD.iso </verbatim> It will generate the needed files in the tftpboot directory. Please note you need to store them on AFS for initial upload in AIMS2. ---++ aims2 <verbatim> > aims2 addimg --arch x86_64 --desc 'LiveCD SLC 6.2 for CF' --vmlinuz ./vmlinuz0 --initrd ./initrd0.img --kopts '' --name CF_SLC_62_LIVE > aims2 showimg CF_SLC_62_LIVE --all ------------------------------------------------------------------------------- Image NAME: CF_SLC_62_LIVE Architecture: x86_64 Description: LIVECD SLC 6.2 FOR CF Boot options: [none] Authorized groups: everybody Kernel source: /afs/cern.ch/project/linux/dev/CF_SLC_62_LIVE/tftpboot/vmlinuz0 Kernel size: 3941392 bytes Kernel MD5 sum: bcca57661f88178b5dbd34a250fe5189 Initial RAM disk source: /afs/cern.ch/project/linux/dev/CF_SLC_62_LIVE/tftpboot/initrd0.img Initial RAM disk size: 241896950 bytes Initial RAM disk MD5 sum: 76ea39ca019b58fa8dfd4a218770d0c9 Image OWNER: toulevey Image uploaded at: 2012/04/05 09:56:39 Synchronized: YYN ------------------------------------------------------------------------------- </verbatim> Be sure the Synchronised state is set to Y. ---+ Boot a host <verbatim> aims2 addhost --kopts 'rootflags=loop root=live:/SLC6-LiveCD.iso rootfstype=auto ro liveimg' <hostname> aims2client pxeon --hostname <hostname> --name CF_SLC_62_LIVE </verbatim> ---+ Workflow for CF * Boot livecd * rc.local will wget and execute a script. * script run ' yum install <whatever>' ---+ Test * Validate hardware models, drivers etc.. ---+ Todo * Web link for the script * SSH access / keys before end of the month * HW Repository link *
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
ks
slc62-live-base.ks
r1
manage
20.9 K
2012-04-05 - 14:50
ThomasOulevey
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r7 - 2013-03-22
-
ThomasOulevey
Log In
LinuxSupport
LinuxSupport Web
LinuxSupport Web Home
Changes
Index
Search
Main
FIOgroup
Cern Search
TWiki Search
Google Search
LinuxSupport
All webs
Copyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback