Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1736391 Details for
Bug 1904008
livemedia-creator aborts on /mnt/sysimage/run unmount failed
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
The custom kickstart passed to livemedia-creator
trace_livecd.ks.tmp (text/plain), 30.27 KB, created by
Gilles Buloz
on 2020-12-04 09:50:40 UTC
(
hide
)
Description:
The custom kickstart passed to livemedia-creator
Filename:
MIME Type:
Creator:
Gilles Buloz
Created:
2020-12-04 09:50:40 UTC
Size:
30.27 KB
patch
obsolete
># ># This file is made of the concatenation of the official files in package ># fedora-kickstarts-0.31.0-0.4.fc33.noarch.rpm that are used by the top file ># fedora-live-xfce.ks ># Then addons for Kontron TRACe/KVX systems have been added ># > ># fedora-livecd-xfce.ks ># ># Description: ># - Fedora Live Spin with the light-weight XFCE Desktop Environment ># ># Maintainer(s): ># - Rahul Sundaram <sundaram@fedoraproject.org> ># - Christoph Wickert <cwickert@fedoraproject.org> ># - Kevin Fenzi <kevin@tummy.com> ># - Adam Miller <maxamillion@fedoraproject.org> > >############# include fedora-live-base.ks ####################### ># fedora-live-base.ks ># ># Defines the basics for all kickstarts in the fedora-live branch ># Does not include package selection (other then mandatory) ># Does not include localization packages or configuration ># ># Does includes "default" language configuration (kickstarts including ># this template can override these settings) > >lang en_US.UTF-8 >keyboard us >timezone US/Eastern >auth --useshadow --passalgo=sha512 >selinux --enforcing >firewall --enabled --service=mdns >xconfig --startxonboot >zerombr >clearpart --all >part / --size 7000 --fstype ext4 # TRACe >services --enabled=NetworkManager,systemd-resolved,sshd,serial-getty@ttyS0 --disabled=ModemManager # TRACe >network --bootproto=dhcp --device=link --activate >rootpw --lock --iscrypted locked >bootloader --append="biosdevname=0 net.ifnames=0 reboot=pci 8250.nr_uarts=6 intel_idle.max_cstate=1" # TRACe >shutdown > >################# include fedora-repo.ks ##################### ># Include the appropriate repo definitions > ># Exactly one of the following should be uncommented > ># For the master branch the following should be uncommented >#################### include fedora-repo-rawhide.ks ##################### >#repo --name=rawhide --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch >#url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch >#################### END include fedora-repo-rawhide.ks ##################### > ># For non-master branches the following should be uncommented >##################### include fedora-repo-not-rawhide.ks ################### >repo --name=packages --baseurl=file:///TRACe-FC33-REPO/packages > >#repo --name=updates-testing --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch >url --url=file:///TRACe-FC33-REPO/packages >##################### END include fedora-repo-not-rawhide.ks ################### > >## TRACe start >#repo --name=rpmfusion-free --mirrorlist=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-$releasever&arch=$basearch > >#repo --name=rpmfusion-free-updates --mirrorlist=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-$releasever&arch=$basearch > >## TRACe end > >################# END include fedora-repo.ks ##################### > >%packages >@base-x >@guest-desktop-agents >@standard >@core >@fonts >@input-methods >@dial-up >@multimedia >@hardware-support >@printing > ># Explicitly specified here: ># <notting> walters: because otherwise dependency loops cause yum issues. >kernel >kernel-modules >kernel-modules-extra > ># This was added a while ago, I think it falls into the category of ># "Diagnosis/recovery tool useful from a Live OS image". Leaving this untouched ># for now. >memtest86+ > ># The point of a live image is to install >anaconda >anaconda-install-env-deps >anaconda-live >@anaconda-tools > ># Need aajohan-comfortaa-fonts for the SVG rnotes images >aajohan-comfortaa-fonts > ># Without this, initramfs generation during live image creation fails: #1242586 >dracut-live >syslinux > ># anaconda needs the locales available to run for different locales >glibc-all-langpacks > ># no longer in @core since 2018-10, but needed for livesys script >initscripts >chkconfig >%end > >###################### TRACe for Fedora remix ################## >%post > >### Have the following release info : "TRACe ID17xxx Fedora Remix 23 (Generic)". NOT OK !!! >#sed -i -e "s/Generic release/TRACe ID$(date '+%y%j') Fedora Remix/g" /etc/fedora-release /etc/issue # not OK ># >### KDP #32344: use "Fedora release 23 Remix (TRACe ID17xxx)". The word "release" must follow the product ("Fedora"), and version is the last number preceeded by a space ("23"). >#sed -i -e "s/Generic/Fedora/" /etc/fedora-release /etc/issue >#sed -i -e "s/(Generic)/Remix (TRACe ID$(date '+%y%j'))/" /etc/fedora-release /etc/issue ># >### KDP #32344: use "TRACe release 17xxx (Fedora-23 Remix)" to have "TRACe" as product and "17xxx" as version ("-" before "23" to have version "17xxx", not "23") >sed -i -e "s/Generic/TRACe/" /etc/fedora-release /etc/issue /etc/issue.net >sed -i -e "s/release /release $(date '+%y%j') (Fedora-/" /etc/fedora-release /etc/issue /etc/issue.net >sed -i -e "s/(Generic)/Remix)/" /etc/fedora-release /etc/issue /etc/issue.net > ># Update /etc/os-release to have meaningful GRUB entries after install >FEDORA_VER=$(cat /etc/os-release | grep '^VERSION_ID=' | cut -d= -f2) >RELEASE_ID=$(date '+%y%j') >cat > /etc/os-release << EOF >NAME=TRACe >VERSION="$RELEASE_ID (Fedora-$FEDORA_VER Remix)" >ID=trace >VERSION_ID=$RELEASE_ID >PRETTY_NAME="TRACe $RELEASE_ID (Fedora-$FEDORA_VER Remix)" >ANSI_COLOR="0;34" >CPE_NAME="cpe:/o:kontron:trace:$RELEASE_ID" >EOF ># and /etc/system-release-cpe >cat > /etc/system-release-cpe << EOF >cpe:/o:kontron:trace:$RELEASE_ID >EOF > >%end > >%packages > ># rebranding >-fedora-logos >#-fedora-logos-httpd # commented to fix error "generic-logos-httpd package not found" even if present in local repo >-fedora-release >-fedora-release-notes >generic-logos >generic-logos-httpd >generic-release >generic-release-notes > >%end >#################### End TRACe packages for Fedora remix ################ > > > >%post ># FIXME: it'd be better to get this installed from a package >cat > /etc/rc.d/init.d/livesys << EOF >#!/bin/bash ># ># live: Init script for live image ># ># chkconfig: 345 00 99 ># description: Init script for live image. >### BEGIN INIT INFO ># X-Start-Before: display-manager chronyd >### END INIT INFO > >. /etc/init.d/functions > >if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then > exit 0 >fi > >if [ -e /.liveimg-configured ] ; then > configdone=1 >fi > >exists() { > which \$1 >/dev/null 2>&1 || return > \$* >} > >livedir="LiveOS" >for arg in \`cat /proc/cmdline\` ; do > if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then > livedir=\${arg##rd.live.dir=} > continue > fi > if [ "\${arg##live_dir=}" != "\${arg}" ]; then > livedir=\${arg##live_dir=} > fi >done > ># enable swaps unless requested otherwise >swaps=\`blkid -t TYPE=swap -o device\` >if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then > for s in \$swaps ; do > action "Enabling swap partition \$s" swapon \$s > done >fi >if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then > action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img >fi > >mountPersistentHome() { > # support label/uuid > if [ "\${homedev##LABEL=}" != "\${homedev}" -o "\${homedev##UUID=}" != "\${homedev}" ]; then > homedev=\`/sbin/blkid -o device -t "\$homedev"\` > fi > > # if we're given a file rather than a blockdev, loopback it > if [ "\${homedev##mtd}" != "\${homedev}" ]; then > # mtd devs don't have a block device but get magic-mounted with -t jffs2 > mountopts="-t jffs2" > elif [ ! -b "\$homedev" ]; then > loopdev=\`losetup -f\` > if [ "\${homedev##/run/initramfs/live}" != "\${homedev}" ]; then > action "Remounting live store r/w" mount -o remount,rw /run/initramfs/live > fi > losetup \$loopdev \$homedev > homedev=\$loopdev > fi > > # if it's encrypted, we need to unlock it > if [ "\$(/sbin/blkid -s TYPE -o value \$homedev 2>/dev/null)" = "crypto_LUKS" ]; then > echo > echo "Setting up encrypted /home device" > plymouth ask-for-password --command="cryptsetup luksOpen \$homedev EncHome" > homedev=/dev/mapper/EncHome > fi > > # and finally do the mount > mount \$mountopts \$homedev /home > # if we have /home under what's passed for persistent home, then > # we should make that the real /home. useful for mtd device on olpc > if [ -d /home/home ]; then mount --bind /home/home /home ; fi > [ -x /sbin/restorecon ] && /sbin/restorecon /home > if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi >} > >findPersistentHome() { > for arg in \`cat /proc/cmdline\` ; do > if [ "\${arg##persistenthome=}" != "\${arg}" ]; then > homedev=\${arg##persistenthome=} > fi > done >} > >if strstr "\`cat /proc/cmdline\`" persistenthome= ; then > findPersistentHome >elif [ -e /run/initramfs/live/\${livedir}/home.img ]; then > homedev=/run/initramfs/live/\${livedir}/home.img >fi > ># if we have a persistent /home, then we want to go ahead and mount it >if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; then > action "Mounting persistent /home" mountPersistentHome >fi > >if [ -n "\$configdone" ]; then > exit 0 >fi > ># add liveuser user with no passwd >action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser >passwd -d liveuser > /dev/null >usermod -aG wheel liveuser > /dev/null > ># Remove root password lock >passwd -d root > /dev/null > ># turn off firstboot for livecd boots >systemctl --no-reload disable firstboot-text.service 2> /dev/null || : >systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || : >systemctl stop firstboot-text.service 2> /dev/null || : >systemctl stop firstboot-graphical.service 2> /dev/null || : > ># don't use prelink on a running live image >sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || : > ># turn off mdmonitor by default >systemctl --no-reload disable mdmonitor.service 2> /dev/null || : >systemctl --no-reload disable mdmonitor-takeover.service 2> /dev/null || : >systemctl stop mdmonitor.service 2> /dev/null || : >systemctl stop mdmonitor-takeover.service 2> /dev/null || : > ># don't enable the gnome-settings-daemon packagekit plugin >gsettings set org.gnome.software download-updates 'false' || : > ># don't start cron/at as they tend to spawn things which are ># disk intensive that are painful on a live image >systemctl --no-reload disable crond.service 2> /dev/null || : >systemctl --no-reload disable atd.service 2> /dev/null || : >systemctl stop crond.service 2> /dev/null || : >systemctl stop atd.service 2> /dev/null || : > ># turn off abrtd on a live image >systemctl --no-reload disable abrtd.service 2> /dev/null || : >systemctl stop abrtd.service 2> /dev/null || : > ># Don't sync the system clock when running live (RHBZ #1018162) >sed -i 's/rtcsync//' /etc/chrony.conf > ># Mark things as configured >touch /.liveimg-configured > ># add static hostname to work around xauth bug ># https://bugzilla.redhat.com/show_bug.cgi?id=679486 ># the hostname must be something else than 'localhost' ># https://bugzilla.redhat.com/show_bug.cgi?id=1370222 >echo "localhost-live" > /etc/hostname > >EOF > ># bah, hal starts way too late >cat > /etc/rc.d/init.d/livesys-late << EOF >#!/bin/bash ># ># live: Late init script for live image ># ># chkconfig: 345 99 01 ># description: Late init script for live image. > >. /etc/init.d/functions > >if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then > exit 0 >fi > >exists() { > which \$1 >/dev/null 2>&1 || return > \$* >} > >touch /.liveimg-late-configured > ># read some variables out of /proc/cmdline >for o in \`cat /proc/cmdline\` ; do > case \$o in > ks=*) > ks="--kickstart=\${o#ks=}" > ;; > xdriver=*) > xdriver="\${o#xdriver=}" > ;; > esac >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 > ># configure X, allowing user to override xdriver >if [ -n "\$xdriver" ]; then > cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE >Section "Device" > Identifier "Videocard0" > Driver "\$xdriver" >EndSection >FOE >fi > >EOF > >chmod 755 /etc/rc.d/init.d/livesys >/sbin/restorecon /etc/rc.d/init.d/livesys >/sbin/chkconfig --add livesys > >chmod 755 /etc/rc.d/init.d/livesys-late >/sbin/restorecon /etc/rc.d/init.d/livesys-late >/sbin/chkconfig --add livesys-late > ># enable tmpfs for /tmp >systemctl enable tmp.mount > ># make it so that we don't do writing to the overlay for things which ># are just tmpdirs/caches ># note https://bugzilla.redhat.com/show_bug.cgi?id=1135475 >cat >> /etc/fstab << EOF >vartmp /var/tmp tmpfs defaults 0 0 >EOF > ># work around for poor key import UI in PackageKit >rm -f /var/lib/rpm/__db* >releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release) >basearch=$(uname -i) >rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch >echo "Packages within this LiveCD" >rpm -qa ># Note that running rpm recreates the rpm db files which aren't needed or wanted >rm -f /var/lib/rpm/__db* > ># go ahead and pre-make the man -k cache (#455968) >/usr/bin/mandb > ># make sure there aren't core files lying around >rm -f /core* > ># remove random seed, the newly installed instance should make it's own >rm -f /var/lib/systemd/random-seed > ># convince readahead not to collect ># FIXME: for systemd > >echo 'File created by kickstart. See systemd-update-done.service(8).' \ > | tee /etc/.updated >/var/.updated > ># Drop the rescue kernel and initramfs, we don't need them on the live media itself. ># See bug 1317709 >rm -f /boot/*-rescue* > ># Disable network service here, as doing it in the services line ># fails due to RHBZ #1369794 >/sbin/chkconfig network off > ># Remove machine-id on pre generated images >rm -f /etc/machine-id >touch /etc/machine-id > >%end > > >%post --nochroot >cp $INSTALL_ROOT/usr/share/licenses/*-release/* $LIVE_ROOT/ > ># only works on x86, x86_64 >if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then > # For livecd-creator builds > if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi > cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS > > # For lorax/livemedia-creator builds > sed -i ' > /## make boot.iso/ i\ > # Add livecd-iso-to-disk script to .iso filesystem at /LiveOS/\ > <% f = "usr/bin/livecd-iso-to-disk" %>\ > %if exists(f):\ > install ${f} ${LIVEDIR}/${f|basename}\ > %endif\ > ' /usr/share/lorax/templates.d/99-generic/live/x86.tmpl >fi > >%end >############# END include fedora-live-base.ks #################################### > >############# include fedora-live-minimization.ks ############################### ># Common packages removed from comps ># For F14, these removals should be moved to comps itself > >%packages > ># save some space >-mpage >-hplip >-isdn4k-utils > ># scanning takes quite a bit of space :/ >-xsane >-xsane-gimp >-sane-backends > >%end >############# END include fedora-live-minimization.ks ############################### > >############# include fedora-xfce-common.ks ########################## ># fedora-livecd-xfce.ks ># ># Description: ># - Fedora Live Spin with the light-weight XFCE Desktop Environment ># ># Maintainer(s): ># - Rahul Sundaram <sundaram@fedoraproject.org> ># - Christoph Wickert <cwickert@fedoraproject.org> ># - Kevin Fenzi <kevin@tummy.com> ># - Adam Miller <maxamillion@fedoraproject.org> > > >%packages > >@networkmanager-submodules >@xfce-desktop >@xfce-apps >@xfce-extra-plugins >@xfce-media >@xfce-office > ># unlock default keyring. FIXME: Should probably be done in comps >gnome-keyring-pam ># Admin tools are handy to have >@admin-tools ># Add some screensavers, people seem to like them ># Note that blank is still default. >xscreensaver-extras >wget ># Better more popular browser >#firefox >system-config-printer > ># save some space >-autofs >-acpid >-gimp-help >-desktop-backgrounds-basic >-aspell-* # dictionaries are big >-xfce4-sensors-plugin > >%end >############# END include fedora-xfce-common.ks ########################## > >################################ TRACe / TRACe-HMI packages ################### >%packages > ># to build drivers and tools >gcc >tar >kernel-devel >kernel-headers >kernel-modules-extra >rpm-build >systemd-devel >elfutils-libelf-devel # Required in FC28 to build drivers of BSP > ># misc >xvkbd >wvdial >hostapd > ># GBL : addons for KDP #20864 >#@xfce-desktop-environment # not a group but an environment and does not work here. We should also have everything we need with default live config ># >@sound-and-video # leads to "Warning: Group sound-and-video does not have any packages to install." >@system-tools ># ># --- and make sure these packages are installed >vlc >totem >audacity >pavucontrol >alsa-utils > ># useful packages >vim-enhanced >vim-common >i2c-tools >lm_sensors >firefox >#livecd-tools > ># Cleanup for saving space >#-avahi (are required by other packages) >#-avahi-libs (are required by other packages) >#-avahi-glib (are required by other packages) >#-avahi-autoipd (are required by other packages) > ># For 32 bit compatibility (TRACE-V407-TR requirement) >glibc.i686 > ># Packages in 32/64 bits (TRACE-V407-TR requirement) >libstdc++.i686 >libstdc++.x86_64 >glibc.x86_64 > ># to build trace-logos >libicns-utils >fdupes >kde-filesystem > ># to save space and have install fit in 8Gb disk >-google-noto-sans-cjk-ttc-fonts >-google-noto-serif-cjk-ttc-fonts > > ># ============= Ugly package list for HAS test suite from FC20 ks_hmitr2.cfg. ==================== ># ># TODO : cleanup this list !! Some packages below are already listed above ># >########## Python stuff to review !! ># >### python2 packages used in Fedora 28 or older that are no more available. TODO : fixme !! >##python-perf >##testoob # needs python2-4suite-xml (python-4suite-xml) that is no more available (bug ?). A FC29 package exists >##python-testosterone >##python-4Suite-XML ># >### old python2 package names used in Fedora 28 now available under name python2-xxx >#wxPython >#python-lxml >#python-ethtool >#pexpect >#pyserial >#python-netifaces >#libxml2-python >#python-daemon >#numpy >#python-alsa # not needed ># >### python2 packages still available under name python2-xxx >#python2-wxpython # no more available >#python2-lxml # no more available >#python2-ethtool # no more available >#python2-pexpect # no more available >#python2-pyserial # no more available >#python2-netifaces # no more available >#python2-libxml2 # no more available >#python2-daemon # no more available >#python2-numpy # available but removed to remove all python2 packages >#python2-alsa # not needed ># >### python3 equivalent packages >#python3-wxpython # No available for python3 >python3-lxml >python3-ethtool >python3-pexpect >python3-pyserial >python3-netifaces >python3-libxml2 >python3-daemon >python3-numpy >#python3-alsa # not needed ># >########## END Python stuff to review !! > ># for lspci >pciutils ># X11 drivers >xorg-x11-drv-intel >xorg-x11-drv-vesa >xorg-x11-drv-evdev > >wireshark ># for ifconfig >net-tools > ># Standard kernel >kernel >kernel-devel >kernel-headers > >kernel-tools >kernel-tools-libs >kernel-tools-libs-devel > >perf > ># Needed by kontron perf >elfutils >elfutils-libs >elfutils-libelf > ># Add power mangement >xfce4-power-manager > >dhclient ># terminals >xterm >eterm ># PDF >evince ># for graphical http >firefox ># for graphical monitoring >gkrellm >#for non graphical monitoring >vnstat ># to remove for space >#-wpa_supplicant >#-NetworkManager >gcc >nasm ># for xxd tool >vim-common ># Tracks and displays system calls associated with a running process >strace ># for installing python eggs >#python-setuptools >#time sync client and server >ntp >ntpdate >time ># Filesystem and disk benchmark & burn-in suite >bonnie++ >#iozone >fio ># memory hard testing >memtester >memtest86+ ># ethernet tool >ethtool ># A heterogeneous set of I2C tools for Linux >i2c-tools >i2c-tools-perl > ># Measurement tool for TCP/UDP bandwidth performance >iperf > ># for xsltproc (XSLT proc) >libxslt >#terminal facilities >minicom ># conf >subversion ># for text http >links ># for reading cpu special register >msr-tools ># for generating distribution >createrepo >fuse ># for building rpms >rpm-build ># devel / distrib building >qemu-kvm ># easy file sharing to get back log results from boards >fuse-sshfs ># easy text file manager >mc > ># easy remote desktop >tigervnc >tigervnc-server ># To be able to compile i7z >ncurses-devel ># To handle switch load/save conf >tftp >tftp-server ># monitoring >net-snmp >sysstat ># to get dummy readable strings for tests >#fortune-mod ># to convert docbook to html >docbook-style-xsl ># webcam >#cheese ># easy text dialog >dialog ># easy gui from python ># takes two much spaces ... only on prod computer ? >#tkinter >gnome-system-monitor ># for switch counter access >net-snmp-utils > >wget >#Programs for reading / writing i2c / smbus eeproms >i2c-tools-eepromer ># network port scanner >nmap ># hardware lister >lshw ># remote monitoring >gkrellm-daemon ># sensors >lm_sensors ># for audio testing >alsa-utils > ># for lsusb >usbutils >#fam like colors >vim >leafpad >mlocate >gparted >gdisk >hdparm ># NFS >rpcbind >nfs-utils > ># EFI >efibootmgr >grub2-efi >#grub2-efi-modules >shim ># for test >sysbench ># image display >eog > ># for production >dhcp >xinetd >syslinux-tftpboot >ipxe-bootimgs ># graphical support for network spy >#wireshark-gnome >dracut-network ># missing for serial login (systemd conplain about a missed lib: /usr/lib64/security/pam_fprintd.so) >fprintd-pam > ># SIM support >wvdial > ># ============== End of ugly package list for HAS test suite from FC20 ks_hmitr2.cfg ============================= > > ># To use gpiochip (no gpio in sysfs anymore) >libgpiod >libgpiod-utils >############################################### ># SPECIFIC TO TRACe / TRACe-HMI >autoconf >automake >libtool > ># TRACe / TRACe-HMI for bootloader tool (software updates) >gcc-c++ >libusb >libusbx >libusbx-devel >qt5-qtbase-devel >#qt-devel >#qt-creator ># for libserial >#boost >#boost-devel # no more needed and takes ~125Mb >sip >#sip-devel # no more needed and available > >zenity # needed for trace-poweroff popup when igniton key is switched off > ># to build xinput_calibrator from sources >desktop-file-utils >gtk2-devel >libXtst-devel > ># add livecd-creator and livemedia-creator >livecd-tools >lorax > ># END OF SPECIFIC TO TRACe / TRACe-HMI >################################################ > >############################################################# ># SUPPLEMENTARY PACKAGES REQUIRED BY HARDWARE TESTS >lsscsi > ># END OF SUPPLEMENTARY PACKAGES REQUIRED BY HARDWARE TESTS >############################################################# > >%end >################################ End TRACe / TRACe-HMI packages ################### > > > >%post ># xfce configuration > ># create /etc/sysconfig/desktop (needed for installation) > >cat > /etc/sysconfig/desktop <<EOF >PREFERRED=/usr/bin/startxfce4 >DISPLAYMANAGER=/usr/sbin/lightdm >EOF > >cat >> /etc/rc.d/init.d/livesys << EOF > >mkdir -p /home/liveuser/.config/xfce4 > >cat > /home/liveuser/.config/xfce4/helpers.rc << FOE >MailReader=sylpheed-claws >FileManager=Thunar >WebBrowser=firefox >FOE > ># disable screensaver locking (#674410) >cat >> /home/liveuser/.xscreensaver << FOE >mode: off >lock: False >dpmsEnabled: False >FOE > ># deactivate xfconf-migration (#683161) >rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || : > ># deactivate xfce4-panel first-run dialog (#693569) >mkdir -p /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml >cp /etc/xdg/xfce4/panel/default.xml /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml > ># set up lightdm autologin >sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf >sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf >#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf > ># set Xfce as default session, otherwise login will fail >sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf > ># Show harddisk install on the desktop >sed -i -e 's/Icon=org.fedoraproject.AnacondaInstaller/Icon=anaconda/' /usr/share/applications/liveinst.desktop # TRACe : fedora bug fix >sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop >mkdir /home/liveuser/Desktop >cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop > ># no updater applet in live environment >rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop > ># and mark it as executable (new Xfce security feature) >chmod +x /home/liveuser/Desktop/liveinst.desktop > ># this goes at the end after all other changes. >chown -R liveuser:liveuser /home/liveuser >restorecon -R /home/liveuser > >EOF > >%end > >################################ TRACe specifc ################################### > ># livemedia-creator does not expand parameter --log $INSTALL_ROOT/root/, and also $INSTALL_ROOT ># is not defined. So $INSTALL_ROOT should be replaced by /mnt/sysimage/root/ >%post --nochroot --log=/mnt/sysimage/root/kontron-live-nochroot-ks-post.log > ># some debug >echo "PATH = $PATH" >echo "INSTALL_ROOT = $INSTALL_ROOT" >echo "ANA_INSTALL_PATH = $ANA_INSTALL_PATH" >echo "pwd = $(pwd)" >echo "PWD = $PWD" >echo "OLDPWD = $OLDPWD" > ># Fixes for livemedia-creator when used instead of livecd-creator >if [ -n "$ANA_INSTALL_PATH" ] ; then > export INSTALL_ROOT=$ANA_INSTALL_PATH > cd /home/gbl/TRACe-FC33/trunk # path from which livemedia-creator is run. Must be updated before build. >fi > ># Workaround for uname and tar not found in chroot >export PATH=$PATH > ># Build source tarball and copy to Live image >mkdir -p $INSTALL_ROOT/opt/TRACe-BSP > >cd ./TRACe-BSP >rm -f trace_linux_bsp-*.tar.gz >make dist >cp trace_linux_bsp-*.tar.gz $INSTALL_ROOT/opt/TRACe-BSP/ >cd - > >cd ./IOM-Serial >rm -f iom-xr-usb-serial-*.tar.gz >make dist >cp iom-xr-usb-serial-*.tar.gz $INSTALL_ROOT/opt/TRACe-BSP/ >cd - > >cd ./IOM-GPIO >rm -f iom-gpio-*.tar.gz >make dist >cp iom-gpio-*.tar.gz $INSTALL_ROOT/opt/TRACe-BSP/ >cd - > ># Copy the kickstart file to the Live image (for user information) >cp trace_livecd.ks $INSTALL_ROOT/opt/TRACe-BSP/ > ># For TRACe-HMI, copy TouchScreen driver (x86_64 binary) to live image >cp -a ./TouchScreen $INSTALL_ROOT/opt/TRACe-BSP/ >cd ./TouchScreen >cp xinput_calibrator-*.tar.gz $INSTALL_ROOT/opt/TRACe-BSP/ >cd - > ># Add kehm folder >cp -r ./kehm $INSTALL_ROOT/opt/TRACe-BSP/kehm >chmod +x $INSTALL_ROOT/opt/TRACe-BSP/kehm/install.sh > ># TRACe logos >cp -f Remix-Files/trace-logos-*.tar.bz2 $INSTALL_ROOT/opt/TRACe-BSP/ > >%end > >%post --log=/root/kontron-live-ks-post.log > ># Path to generated RPMs >if [ -n "$ANA_INSTALL_PATH" ] ; then > RPMBUILD_DIR=/tmp/rpmbuild # with livemedia-creator >else > RPMBUILD_DIR=/rpmbuild # with livecd-creator >fi > ># Build the SRPM from source tarball >cd /opt/TRACe-BSP/ > >LIVE_KERNEL=$(basename $(ls -d /usr/src/kernels/* 2>/dev/null) | tail -1) # kernel version of the Live image (not the host) >export PATH=$PATH:/usr/lib64/ccache # fix compilation errors due to gcc cache in chroot env > >if [ "$WITHOUT_RPM" = "1" ] ; then > # installation without RPM support (unused; just for example) > tar xvzf trace_linux_bsp-*.tar.gz > cd $(find . -type d -name 'trace_linux_bsp-*') > make BUILD_KERNEL=$LIVE_KERNEL > make BUILD_KERNEL=$LIVE_KERNEL install > cd /opt/TRACe-BSP/ > rm -rf $(find . -type d -name 'trace_linux_bsp-*') >else > # installation using RPM tools > > # build SRPM > rpmbuild -ts --define "kernel $LIVE_KERNEL" trace_linux_bsp-*.tar.gz > cp $RPMBUILD_DIR/SRPMS/trace_linux_bsp-*.src.rpm . > rpmbuild -ts --define "kernel $LIVE_KERNEL" iom-xr-usb-serial-*.tar.gz > cp $RPMBUILD_DIR/SRPMS/iom-xr-usb-serial-*.src.rpm . > rpmbuild -ts --define "kernel $LIVE_KERNEL" iom-gpio-*.tar.gz > cp $RPMBUILD_DIR/SRPMS/iom-gpio-*.src.rpm . > rpmbuild -ts trace-logos-*.tar.bz2 > cp $RPMBUILD_DIR/SRPMS/trace-logos-*.src.rpm . > rpmbuild -ts xinput_calibrator-*.tar.gz > cp $RPMBUILD_DIR/SRPMS/xinput_calibrator-*.src.rpm . > > # Build the RPM > QA_SKIP_BUILD_ROOT=1 rpmbuild -tb --define "kernel $LIVE_KERNEL" trace_linux_bsp-*.tar.gz # specify Live kernel because default is running (host) kernel > cp $RPMBUILD_DIR/RPMS/x86_64/trace_linux_bsp-*.x86_64.rpm . > QA_SKIP_BUILD_ROOT=1 rpmbuild -tb --define "kernel $LIVE_KERNEL" iom-xr-usb-serial-*.tar.gz # specify Live kernel because default is running (host) kernel > cp $RPMBUILD_DIR/RPMS/x86_64/iom-xr-usb-serial-*.x86_64.rpm . > QA_SKIP_BUILD_ROOT=1 rpmbuild -tb --define "kernel $LIVE_KERNEL" iom-gpio-*.tar.gz # specify Live kernel because default is running (host) kernel > cp $RPMBUILD_DIR/RPMS/x86_64/iom-gpio-*.x86_64.rpm . > QA_SKIP_BUILD_ROOT=1 rpmbuild -tb trace-logos-*.tar.bz2 > cp $RPMBUILD_DIR/RPMS/noarch/trace-logos-*.noarch.rpm . > QA_SKIP_BUILD_ROOT=1 rpmbuild -tb --nodebuginfo xinput_calibrator-*.tar.gz > cp $RPMBUILD_DIR/RPMS/x86_64/xinput_calibrator-*.x86_64.rpm . > > # Install the RPM > rpm -ivh trace_linux_bsp-*.x86_64.rpm > rpm -ivh iom-xr-usb-serial-*.x86_64.rpm > rpm -ivh iom-gpio-*.x86_64.rpm > rpm -ivh xinput_calibrator-*.x86_64.rpm > # replace generic logos with trace logos > rpm -e --nodeps generic-logos > rpm -e --nodeps generic-logos-httpd > rpm -ivh trace-logos-*.noarch.rpm > > # cleanup > rm -r -f $RPMBUILD_DIR >fi > ># Install Kehm >cd /opt/TRACe-BSP/kehm ; ./install.sh livebuild ; cd - > >echo '%post' > /usr/share/anaconda/post-scripts/70-trace.ks # not below to prevent %post processing in main kickstart >cat <<EOF >> /usr/share/anaconda/post-scripts/70-trace.ks ># ># TRACe workaround : due to a bug in FC28, no login on serial line is available with ># multi-user.target (runlevel 3), so set graphical target (runlevel 5) as default target. ># This also enable graphics login if we have a graphics chip, even if installed from ># serial console. >systemctl set-default graphical.target > ># TRACe update for GRUB2 BLS mode (F30 and above) : rename boot entries from Fedora to TRACe if not yet done by anaconda ># Example : title Fedora (5.6.13-100.fc30.x86_64) 30 (Thirty) ---> title TRACe (5.6.13-100.fc30.x86_64) 20315 (Fedora-30 Remix) ># Must be done after install as anaconda is recreating these files >if ls /boot/loader/entries/*.conf 2>/dev/null ; then > sed -i -e "/^title Fedora /s/^\(title\) .* \((.*)\) \(.*\) .*\$/\1 TRACe \2 $(date '+%y%j') (Fedora-\3 Remix)/" /boot/loader/entries/*.conf >fi >EOF >echo '%end' >> /usr/share/anaconda/post-scripts/70-trace.ks > ># TRACe workarounds for anaconda installer >cat >> /etc/rc.d/init.d/livesys << EOF ># TRACe workarounds > ># Prevent anaconda from saying "pre-release/testing" if generic-release has release version set to 0 >sed -i -e 's/ANACONDA_ISFINAL="false"/ANACONDA_ISFINAL="true"/' /usr/sbin/liveinst > >EOF > ># Disable screen blanking done by power manager because may never wakeup from blanking >sed -i -e '/^ <\/property>/i \ \ \ \ <property name="blank-on-ac" type="int" value="0"/>' /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml > ># Use single click activation on desktop icons because double click not useful and also ># not working with touchpad (only for icons) on Fedora 30 >cat > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml << EOF ><?xml version="1.0" encoding="UTF-8"?> > ><channel name="xfce4-desktop" version="1.0"> > <property name="desktop-icons" type="empty"> > <property name="single-click" type="bool" value="true"/> > </property> ></channel> >EOF > >%end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1904008
:
1736036
| 1736391