Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:Medias
openSUSE-Argon
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package openSUSE-Argon
#!/bin/bash #================ # FILE : config.sh #---------------- # PROJECT : openSUSE KIWI Image System # COPYRIGHT : (c) 2006,2007,2008,2017 SUSE Linux GmbH. All rights reserved # : # AUTHOR : Marcus Schaefer <ms@suse.de>, Stephan Kulow <coolo@suse.de>, Fabian Vogt <fvogt@suse.com> # : # LICENSE : BSD #====================================== # Functions... #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile set -euox pipefail exec | tee /var/log/config.log exec 2>&1 pl=$(rpmqpack | grep -pkglist) || true test -z "$pl" || rpm -e $pl #-------------------------------------- # enable and disable services for i in langset NetworkManager; do systemctl -f enable $i done ln -s /usr/lib/systemd/system/langset.service /usr/lib/systemd/system/sysinit.target.wants/langset.service for i in sshd cron wicked purge-kernels; do systemctl -f disable $i done cd / # Import keys for installation touch /installkey.gpg # I have no idea why, but the first invocation fails with "Unknown system error", while the second try works fine. gpg --no-default-keyring --ignore-time-conflict --ignore-valid-from --keyring /installkey.gpg --import /usr/lib/rpm/gnupg/keys/* || gpg --no-default-keyring --ignore-time-conflict --ignore-valid-from --keyring /installkey.gpg --import /usr/lib/rpm/gnupg/keys/* mkdir -p /pubkeys for i in /usr/lib/rpm/gnupg/keys/*.asc ; do rpm --import $i || true [ -f "$i" ] && ln -s "$i" "/pubkeys/${i##*/}.key" done # Craft license.tar.gz used by YaST EULA_DIR=/etc/YaST2/licenses/base [ -d "${EULA_DIR}" ] || EULA_DIR=/usr/share/licenses/product/base (cd "${EULA_DIR}"; tar -cvzf /license.tar.gz *) rm -rf /var/cache/zypp/raw/* # Add repos from /etc/YaST2/control.xml add-yast-repos zypper --non-interactive rm -u live-add-yast-repos # Add repos from /add_on_products.xml to the installation eval $(xsltproc /makezyppercmds.xsl /add_on_products.xml) # Adapt control.xml a bit xsltproc /changecontrolxml.xsl /etc/YaST2/control.xml > /control.xml # Not needed anymore rm /makezyppercmds.xsl /changecontrolxml.xsl #====================================== # /etc/sudoers hack to fix #297695 # (Installation Live CD: no need to ask for password of root) #-------------------------------------- sed -i -e "s/ALL ALL=(ALL) ALL/ALL ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers chmod 0440 /etc/sudoers /usr/sbin/useradd -m -u 1000 linux -c "Live-CD User" -p "" # delete passwords passwd -d root passwd -d linux # empty password is ok pam-config -a --nullok : > /var/log/zypper.log for i in org.kde.discover.desktop systemsettings.desktop \ installation.desktop; do cp "/usr/share/applications/${i}" /usr/share/kio_desktop/DesktopLinks/ chmod a+x "/usr/share/kio_desktop/DesktopLinks/${i}" done chown -R linux /home/linux chkstat --system --set rm -rf /var/cache/zypp/packages # bug 544314, we only want to disable the bit in common-auth-pc sed -i -e 's,^\(.*pam_gnome_keyring.so.*\),#\1,' /etc/pam.d/common-auth-pc echo '127.0.0.2 linux.site linux' >> /etc/hosts ln -s /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER_AUTOLOGIN linux baseUpdateSysConfig /etc/sysconfig/keyboard YAST_KEYBOARD "english-us,pc104" baseUpdateSysConfig /etc/sysconfig/keyboard COMPOSETABLE "clear latin1.add" baseUpdateSysConfig /etc/sysconfig/language RC_LANG "" baseUpdateSysConfig /etc/sysconfig/console CONSOLE_FONT "eurlatgr.psfu" baseUpdateSysConfig /etc/sysconfig/console CONSOLE_SCREENMAP trivial baseUpdateSysConfig /etc/sysconfig/console CONSOLE_MAGIC "(K" baseUpdateSysConfig /etc/sysconfig/console CONSOLE_ENCODING "UTF-8" baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER sddm baseUpdateSysConfig /etc/sysconfig/windowmanager DEFAULT_WM plasma5 #Disable journal write to disk in live mode, bug 950999 echo "Storage=volatile" >> /etc/systemd/journald.conf
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor