From 4422f0d320d630d5e86e8e30e23ab94257bf8aef Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sat, 30 Jul 2016 21:30:59 +0300 Subject: [PATCH 01/11] Added CentOS 6.8 repos --- centos6-mini.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centos6-mini.yml b/centos6-mini.yml index d23bac0..a28d365 100644 --- a/centos6-mini.yml +++ b/centos6-mini.yml @@ -13,12 +13,12 @@ lang: en_US.UTF-8 keyboard: us - timezone: Asia/Jerusalem + timezone: Europe/Athens partition_size: 4096 repos_list: - - { name: 'a-base', baseurl: 'http://mirror.isoc.org.il/pub/centos/6/os/$basearch' } - - { name: 'a-updates', baseurl: 'http://mirror.isoc.org.il/pub/centos/6/updates/$basearch' } + - { name: 'a-base', baseurl: 'http://mirror.centos.org/centos/6.8/os/$basearch' } + - { name: 'a-updates', baseurl: 'http://mirror.centos.org/centos/6.8/updates/$basearch' } # End of variable block used by generate_config.py From 53ddc04e575b99c55a0faa8e17637e50dc2849dc Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 00:20:39 +0300 Subject: [PATCH 02/11] Change default template --- README.md | 2 +- generate_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f56f93..ee89e30 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Install EPEL repository if not already installed: Install required packages: - # yum -y install livecd-tools git ansible python-argparse screen + # yum -y install livecd-tools git ansible python-argparse screen python-jinja2 Clone livecd-ansible repository: diff --git a/generate_config.py b/generate_config.py index 028cd01..32db496 100755 --- a/generate_config.py +++ b/generate_config.py @@ -10,7 +10,7 @@ config_file_name=str(sys.argv[1]) template_folder='templates' -default_template='centos6-mini.ks.j2' +default_template='centos6-desktop.ks.j2' script_path, script_filename = os.path.split(os.path.abspath(__file__)) template_folder=os.path.join(script_path,template_folder) From efa93d4ac8011594c3b6aaa05b4fb87c47c416b4 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 03:22:56 +0300 Subject: [PATCH 03/11] Update post-install from upstream live desktop kickstart files --- centos6-mini.yml | 3 +- roles/livecd-post-common/tasks/main.yml | 15 +++-- .../templates/etc_rc.d_init.d_livesys-late.j2 | 18 ++--- .../templates/etc_rc.d_init.d_livesys.j2 | 65 +++++++++++++++++++ 4 files changed, 87 insertions(+), 14 deletions(-) diff --git a/centos6-mini.yml b/centos6-mini.yml index a28d365..7902c0a 100644 --- a/centos6-mini.yml +++ b/centos6-mini.yml @@ -27,7 +27,8 @@ # Add your ansible roles here # - epel-repo # - centos-sshd-service - - livecd-pxe-common + # Until here + # - livecd-pxe-common - livecd-post-common diff --git a/roles/livecd-post-common/tasks/main.yml b/roles/livecd-post-common/tasks/main.yml index ddeaba0..435d202 100644 --- a/roles/livecd-post-common/tasks/main.yml +++ b/roles/livecd-post-common/tasks/main.yml @@ -10,6 +10,9 @@ - livesys - livesys-late +- name: Go ahead and pre-make the man -k cache + command: /usr/sbin/makewhatis -w + - name: Clean up RPM database file: path={{ item }} state=absent with_fileglob: /var/lib/rpm/__db* @@ -29,11 +32,15 @@ - name: Disable readahead file: path=/.readahead_collect state=absent +- name: convince readahead not to collect + file: path=/var/lib/readahead/early.sorted state=touch + # Newer servers come with 10Gbit interfaces on board. Make sure 10gbit Intel driver (ixgbe) is loaded before 1Gbit driver (igb). # This will insure that first two physical 10Gbit NICs will be detected as eth0 and eth1 # TODO: The same procedure should be repited for 10Gbit Broadcom cards. -- name: Load 10Gbit interfaces first on boot - template: src=etc_modprobe.d_netorder.conf.j2 dest=/etc/modprobe.d/netorder.conf owner=root group=root -- name: Add LINKDELAY for eth0 interface - lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth0 regexp=^LINKDELAY= line=LINKDELAY=10 state=present insertafter=EOF +# - name: Load 10Gbit interfaces first on boot +# template: src=etc_modprobe.d_netorder.conf.j2 dest=/etc/modprobe.d/netorder.conf owner=root group=root + +# - name: Add LINKDELAY for eth0 interface +# lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth0 regexp=^LINKDELAY= line=LINKDELAY=10 state=present insertafter=EOF diff --git a/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys-late.j2 b/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys-late.j2 index ff95ccb..93ba757 100644 --- a/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys-late.j2 +++ b/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys-late.j2 @@ -31,14 +31,14 @@ for o in `cat /proc/cmdline` ; do done # if liveinst or textinst is given, start anaconda -#if strstr "`cat /proc/cmdline`" liveinst ; then -# plymouth --quit -# /usr/sbin/liveinst $ks -#fi -#if strstr "`cat /proc/cmdline`" textinst ; then -# plymouth --quit -# /usr/sbin/liveinst --text $ks -#fi +if strstr "`cat /proc/cmdline`" liveinst ; then + plymouth --quit + /usr/sbin/liveinst $ks +fi +if strstr "`cat /proc/cmdline`" textinst ; then + plymouth --quit + /usr/sbin/liveinst --text $ks +fi # configure X, allowing user to override xdriver if [ -n "\$xdriver" ]; then @@ -46,4 +46,4 @@ if [ -n "\$xdriver" ]; then fi # Fix the "liveinst doesn't start in gui mode when not enough memory available" - switching to terminal mode -# sed -i "s/Terminal=false/Terminal=true/" /home/$LIVECD_USER/Desktop/liveinst.desktop \ No newline at end of file +sed -i "s/Terminal=false/Terminal=true/" /home/{{ livecd_user }}/Desktop/liveinst.desktop \ No newline at end of file diff --git a/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys.j2 b/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys.j2 index c1104d5..f25b042 100644 --- a/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys.j2 +++ b/roles/livecd-post-common/templates/etc_rc.d_init.d_livesys.j2 @@ -117,6 +117,8 @@ fi ## fix various bugs and issues +# unmute sound card +exists alsaunmute 0 2> /dev/null # turn off firstboot for livecd boots echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot @@ -165,6 +167,69 @@ sed -i -e 's/HOSTNAME=localhost.localdomain/HOSTNAME={{ hostname }}/g' /etc/sysc # give default user sudo privileges echo "{{ livecd_user }} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +## configure default user's desktop +# set up timed auto-login at 10 seconds +cat >> /etc/gdm/custom.conf << FOE +[daemon] +TimedLoginEnable=true +TimedLogin={{ livecd_user }} +TimedLoginDelay=10 +FOE + +# add keyboard and display configuration utilities to the desktop +mkdir -p /home/{{ livecd_user }}/Desktop >/dev/null +cp /usr/share/applications/gnome-keyboard.desktop /home/{{ livecd_user }}/Desktop/ +cp /usr/share/applications/gnome-display-properties.desktop /home/{{ livecd_user }}/Desktop/ + +# disable screensaver locking +gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled "false" >/dev/null + +# disable PackageKit update checking by default +gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t int /apps/gnome-packagekit/update-icon/frequency_get_updates "0" >/dev/null + +# Switching to Thunderbird as the default MUA +gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/url-handlers/mailto/command "thunderbird %" >/dev/null + +# Creating a file for anaconda, to create the correct grub entry +echo -e "CentOS.$(uname -m)\nCentOS Linux\n6\nyes" > /.buildstamp + +# detecting disk partitions and logical volumes +CreateDesktopIconHD() +{ +cat > /home/$LIVECD_USER/Desktop/Local\ hard\ drives.desktop << EOF_HDicon +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Link +Name=Local hard drives +Name[en_US]=Local hard drives +Name[fr_CA]=Disques durs locaux +URL=/mnt/disc +Icon=/usr/share/icons/gnome/32x32/devices/gnome-dev-harddisk.png +EOF_HDicon + +chmod 755 /home/{{ livecd_user }}/Desktop/Local\ hard\ drives.desktop +} + +CreateDesktopIconLVM() +{ +mkdir -p /home/{{ livecd_user }}/Desktop >/dev/null + +cat > /home/{{ livecd_user }}/Desktop/Local\ logical\ volumes.desktop << EOF_LVMicon +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Link +Name=Local logical volumes +Name[en_US]=Local logical volumes +Name[fr_CA]=Volumes logiques locaux +URL=/mnt/lvm +Icon=/usr/share/icons/gnome/32x32/devices/gnome-dev-harddisk.png +EOF_LVMicon + +chmod 755 /home/{{ livecd_user }}/Desktop/Local\ logical\ volumes.desktop +} + # don't mount disk partitions if 'nodiskmount' is given as a boot option if ! strstr "`cat /proc/cmdline`" nodiskmount ; then MOUNTOPTION="ro" From 863fbb1c3af79d6ef1649929c9edf495b41bf10b Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 03:56:24 +0300 Subject: [PATCH 04/11] Added postnochroot install part to a template --- roles/livecd-isolinux-common/tasks/main.yml | 18 ++++--- .../templates/postnochroot-install.j2 | 49 +++++++++++++++++++ 2 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 roles/livecd-isolinux-common/templates/postnochroot-install.j2 diff --git a/roles/livecd-isolinux-common/tasks/main.yml b/roles/livecd-isolinux-common/tasks/main.yml index 3a9b9e3..d031c66 100644 --- a/roles/livecd-isolinux-common/tasks/main.yml +++ b/roles/livecd-isolinux-common/tasks/main.yml @@ -1,7 +1,13 @@ -- name: Get CDLABEL from isolinux.cfg - shell: /bin/grep CDLABEL {{ live_root }}/isolinux/isolinux.cfg | /usr/bin/head -n1 | /bin/awk '{print $3}' | /bin/awk -F= '{print $3}' - register: cdlabel - changed_when: "cdlabel.rc != 0" +- name: Deploy postnochroot-install + template: src=postnochroot-install.j2 dest={{ live_root }}/postnochroot-install owner=root group=root -- name: Deploy modified isolinux.cfg - template: src=isolinux_isolinux.cfg.j2 dest={{ live_root }}/isolinux/isolinux.cfg owner=root group=root \ No newline at end of file +- name: Execute postnochroot-install + command: /bin/bash {{ live_root }}/postnochroot-install + +# - name: Get CDLABEL from isolinux.cfg +# shell: /bin/grep CDLABEL {{ live_root }}/isolinux/isolinux.cfg | /usr/bin/head -n1 | /bin/awk '{print $3}' | /bin/awk -F= '{print $3}' +# register: cdlabel +# changed_when: "cdlabel.rc != 0" + +# - name: Deploy modified isolinux.cfg +# template: src=isolinux_isolinux.cfg.j2 dest={{ live_root }}/isolinux/isolinux.cfg owner=root group=root \ No newline at end of file diff --git a/roles/livecd-isolinux-common/templates/postnochroot-install.j2 b/roles/livecd-isolinux-common/templates/postnochroot-install.j2 new file mode 100644 index 0000000..fd69376 --- /dev/null +++ b/roles/livecd-isolinux-common/templates/postnochroot-install.j2 @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copy licensing information +cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL + +# add livecd-iso-to-disk utility on the LiveCD +# only works on x86, x86_64 +if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then + if [ ! -d {{ live_root }}/LiveOS ]; then mkdir -p {{ live_root }}/LiveOS ; fi + cp /usr/bin/livecd-iso-to-disk {{ live_root }}/LiveOS +fi + +# customize boot menu entries +grep -B4 'menu default' {{ live_root }}/isolinux/isolinux.cfg > {{ live_root }}/isolinux/default.txt +grep -B3 'xdriver=vesa' {{ live_root }}/isolinux/isolinux.cfg > {{ live_root }}/isolinux/basicvideo.txt +grep -A3 'label check0' {{ live_root }}/isolinux/isolinux.cfg > {{ live_root }}/isolinux/check.txt +grep -A2 'label memtest' {{ live_root }}/isolinux/isolinux.cfg > {{ live_root }}/isolinux/memtest.txt +grep -A2 'label local' {{ live_root }}/isolinux/isolinux.cfg > {{ live_root }}/isolinux/localboot.txt + +sed "s/label linux0/label linuxtext0/" {{ live_root }}/isolinux/default.txt > {{ live_root }}/isolinux/textboot.txt +sed -i "s/Boot/Boot (Text Mode)/" {{ live_root }}/isolinux/textboot.txt +sed -i "s/liveimg/liveimg 3/" {{ live_root }}/isolinux/textboot.txt +sed -i "/menu default/d" {{ live_root }}/isolinux/textboot.txt + +sed "s/label linux0/label install0/" {{ live_root }}/isolinux/default.txt > {{ live_root }}/isolinux/install.txt +sed -i "s/Boot/Install/" {{ live_root }}/isolinux/install.txt +sed -i "s/liveimg/liveimg liveinst noswap nolvmmount/" {{ live_root }}/isolinux/install.txt +sed -i "s/ quiet / /" {{ live_root }}/isolinux/install.txt +sed -i "s/ rhgb / /" {{ live_root }}/isolinux/install.txt +sed -i "/menu default/d" {{ live_root }}/isolinux/install.txt + +sed "s/label linux0/label textinstall0/" {{ live_root }}/isolinux/default.txt > {{ live_root }}/isolinux/textinstall.txt +sed -i "s/Boot/Install (Text Mode)/" {{ live_root }}/isolinux/textinstall.txt +sed -i "s/liveimg/liveimg textinst noswap nolvmmount/" {{ live_root }}/isolinux/textinstall.txt +sed -i "s/ quiet / /" {{ live_root }}/isolinux/textinstall.txt +sed -i "s/ rhgb / /" {{ live_root }}/isolinux/textinstall.txt +sed -i "/menu default/d" {{ live_root }}/isolinux/textinstall.txt + +cat {{ live_root }}/isolinux/default.txt {{ live_root }}/isolinux/basicvideo.txt {{ live_root }}/isolinux/check.txt {{ live_root }}/isolinux/memtest.txt {{ live_root }}/isolinux/localboot.txt > {{ live_root }}/isolinux/current.txt +diff {{ live_root }}/isolinux/isolinux.cfg {{ live_root }}/isolinux/current.txt | sed '/^[0-9][0-9]*/d; s/^. //; /^---$/d' > {{ live_root }}/isolinux/cleaned.txt +cat {{ live_root }}/isolinux/cleaned.txt {{ live_root }}/isolinux/default.txt {{ live_root }}/isolinux/textboot.txt {{ live_root }}/isolinux/basicvideo.txt {{ live_root }}/isolinux/install.txt {{ live_root }}/isolinux/textinstall.txt {{ live_root }}/isolinux/memtest.txt {{ live_root }}/isolinux/localboot.txt > {{ live_root }}/isolinux/isolinux.cfg +rm -f {{ live_root }}/isolinux/*.txt + +# Forcing plymouth to show the logo in vesafb +#sed -i "s/rhgb/rhgb vga=791/g" \$LIVE_ROOT/isolinux/isolinux.cfg + +# Disabling auto lvm/disk mount (that will crash the "Install to Hard Drive feature") +sed -i "s/quiet/quiet nodiskmount nolvmmount/g" {{ live_root }}/isolinux/isolinux.cfg + From 1aa7bd95b061ba2583b953535ff9d7695c15d8da Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 03:56:55 +0300 Subject: [PATCH 05/11] Adding Desktop kickstart file --- templates/centos6-desktop.ks.j2 | 107 ++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 templates/centos6-desktop.ks.j2 diff --git a/templates/centos6-desktop.ks.j2 b/templates/centos6-desktop.ks.j2 new file mode 100644 index 0000000..4c4c247 --- /dev/null +++ b/templates/centos6-desktop.ks.j2 @@ -0,0 +1,107 @@ +lang {{ lang }} +keyboard {{ keyboard }} +timezone {{ timezone }} +auth --useshadow --enablemd5 +selinux --disabled +firewall --disabled +rootpw {{ root_password }} + +part / --size {{ partition_size }} --fstype ext4 +xconfig --startxonboot +services --enabled=NetworkManager --disabled=network,sshd + +{% for repo in repos_list %}repo --name={{ repo.name }} --baseurl={{ repo.baseurl }} +{% endfor %} + +%packages +@base +@core +@basic-desktop +@fonts +@internet-browser +@legacy-x +sgpio +device-mapper-persistent-data +libXmu +@x11 +mtools +python-dmidecode +sgpio +genisoimage +wodim +libXmu +-eog +-vino +-gdm-plugin-fingerprint +-abyssinica-fonts +-cjkuni-uming-fonts +-wdaemon +-wacomexpresskeys +-abrt-cli +-abrt-addon-kerneloops +-abrt-addon-ccpp +-nano +-abrt-plugin-sosreport +-abrt-addon-python +-gok +-vino +-gdm-plugin-fingerprint +-PackageKit-gstreamer-plugin +-gnome-backgrounds +-rhythmbox +-compiz-gnome +-scenery-backgrounds +-gnote +-evince-dvi +-seahorse +-sound-juicer +gthumb +-totem +-totem-mozplugin +-totem-nautilus +-pidgin +-thunderbird +rdesktop +tigervnc +tsclient +-vinagre +#added because @general-desktop is gone +cheese +gedit +evince +gnome-bluetooth +gnome-disk-utility +gnome-power-manager + +# livecd bits to set up the livecd and be able to install +memtest86+ +#livecd-tools +anaconda +device-mapper-multipath +isomd5sum +syslinux + +%end + +%post --nochroot + +# Fix Issue with ansible chroot transport crashing when PATH variable is not defined +export PATH=$PATH:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin + +# Fix issue with resolving not working for chroot +cp /etc/resolv.conf $INSTALL_ROOT/etc/resolv.conf + +# Generate inventory file for ansible +cat > {{ work_dir }}/auto_gen_ansible_hosts-{{ config_name }} << EOF_ansible_hosts +[post] +$INSTALL_ROOT + +[post-nochroot] +127.0.0.1 live_root=$LIVE_ROOT +127.0.0.1 install_root=$INSTALL_ROOT +EOF_ansible_hosts + +# Perform postinstallation with ansible +/usr/bin/ansible-playbook -i {{ work_dir }}/auto_gen_ansible_hosts-{{ config_name }} {{ work_dir }}/{{ config_name }}.yml + +%end From 646d81df351627150db312a3b6bff763a9de9938 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 11:26:08 +0300 Subject: [PATCH 06/11] Fixed install_root variable --- roles/livecd-isolinux-common/templates/postnochroot-install.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/livecd-isolinux-common/templates/postnochroot-install.j2 b/roles/livecd-isolinux-common/templates/postnochroot-install.j2 index fd69376..f9ef277 100644 --- a/roles/livecd-isolinux-common/templates/postnochroot-install.j2 +++ b/roles/livecd-isolinux-common/templates/postnochroot-install.j2 @@ -1,7 +1,7 @@ #!/bin/bash # Copy licensing information -cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL +cp {{ install_root }}/usr/share/doc/*-release-*/GPL {{ live_root }}/GPL # add livecd-iso-to-disk utility on the LiveCD # only works on x86, x86_64 From 3572f5a03c0cd9248b46c4c105ef35d9cc224fdd Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 11:30:24 +0300 Subject: [PATCH 07/11] Switch iso name --- centos6-mini.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centos6-mini.yml b/centos6-mini.yml index 7902c0a..cec0012 100644 --- a/centos6-mini.yml +++ b/centos6-mini.yml @@ -4,8 +4,8 @@ gather_facts: false vars: - cdlabel: centos6-mini - hostname: centos6-mini + cdlabel: centos6-desktop + hostname: geonode livecd_user: centos root_password: centos From 1d9d8ffe41904843f2b90eec5ad012aeeaa2de43 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 11:34:04 +0300 Subject: [PATCH 08/11] Switch config name --- centos6-mini.yml => centos6-desktop.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename centos6-mini.yml => centos6-desktop.yml (100%) diff --git a/centos6-mini.yml b/centos6-desktop.yml similarity index 100% rename from centos6-mini.yml rename to centos6-desktop.yml From 4d529ad1ff13b284af3e2357aee1418aa75d6198 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 12:13:17 +0300 Subject: [PATCH 09/11] Switch config name --- livecd-builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livecd-builder.yml b/livecd-builder.yml index 2a34107..0875034 100644 --- a/livecd-builder.yml +++ b/livecd-builder.yml @@ -13,7 +13,7 @@ #livecd_ansible_src_path: /opt/livecd-ansible livecd_ansible_src_path: /vagrant - livecd_label: centos6-mini + livecd_label: centos6-desktop # Upload tasks to tftp and iso server are done in "naive" way. # It is expected that livecd-builder server has root ssh keys for both servers. From 18a87c696528bf4a4032a1b5df01e5ea4a19a2e4 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 13:20:51 +0300 Subject: [PATCH 10/11] change hostname --- centos6-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centos6-desktop.yml b/centos6-desktop.yml index cec0012..1cdd6be 100644 --- a/centos6-desktop.yml +++ b/centos6-desktop.yml @@ -5,7 +5,7 @@ vars: cdlabel: centos6-desktop - hostname: geonode + hostname: centos6-desktop livecd_user: centos root_password: centos From 31a672e246c8e4155838a8e079bf7ae13e615218 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 31 Jul 2016 13:53:26 +0300 Subject: [PATCH 11/11] Updated README --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ee89e30..d5212f2 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ -Building Custom CentOS 6.4 LiveCD With Ansible +Building Custom CentOS 6.8 LiveCD With Ansible ============================================== -Step by Step Instruction are available here [Building Custom CentOS 6.4 LiveCD With Ansible](http://gr360ry.github.io/blog/2013/11/28/building-custom-centos-6-dot-4-livecd-with-ansible/) +Initial work and step-by-step instructions are available in the blog post: [Building Custom CentOS 6.4 LiveCD With Ansible](http://gr360ry.github.io/blog/2013/11/28/building-custom-centos-6-dot-4-livecd-with-ansible/) + +Master branch is being used to build a minimal live cd system, while the desktop branch is being used to build a full desktop live cd. ## Requirements: -1. CentOS 6.X machine. -2. livecd-tools, git, python-argparse, screen and ansible – all packages available in EPEL repository. +1. CentOS 6.X machine or virtual machine. +2. livecd-tools, git, python-argparse, python-jinja2, screen and ansible – all packages available in EPEL repository. Install EPEL repository if not already installed: - # yum -y install http://ftp.nluug.nl/pub/os/Linux/distr/fedora-epel/6/i386/epel-release-6-8.noarch.rpm + # yum -y install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm Install required packages: @@ -17,13 +19,13 @@ Install required packages: Clone livecd-ansible repository: - $ git clone https://github.com/GR360RY/livecd-ansible.git + $ git clone https://github.com/kalxas/livecd-ansible.git -b desktop -Add your custom ansible roles, modify centos6-mini.yml and generate the CD: +Add your custom ansible roles, modify centos6-desktop.yml and generate the CD: $ cd livecd-ansible - $ ./generate_config.py centos6-mini.yml + $ ./generate_config.py centos6-desktop.yml $ sudo -s - # livecd-creator -c centos6-mini.ks --cache=cache -f centos6-mini - + # livecd-creator -c centos6-desktop.ks --cache=cache -f centos6-desktop +Many thanks to Gregory for his initial work!