Skip to content

Commit

Permalink
more checks in scripts, executed then yast2-live-installer completes …
Browse files Browse the repository at this point in the history
…jobs
  • Loading branch information
embar- committed Jun 7, 2017
1 parent efb11dd commit 08df4b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
7 changes: 0 additions & 7 deletions package/correct_live_for_reboot
Expand Up @@ -16,15 +16,8 @@ fi
rm /usr/lib/systemd/system/sysinit.target.wants/langset.service
rm /usr/lib/systemd/system/langset.service /usr/lib/systemd/system/sysinit.target.wants/langset.service


: > /var/run/utmp

# remove live-cd user
userdel linux
# a lot of stuff!
rm -rf /home/linux/.local/share/akonadi
mv /home/linux /home/linux~

#undo journald.conf changes, bug 950999
sed -i -e s@Storage=volatile@@ /etc/systemd/journald.conf

31 changes: 23 additions & 8 deletions package/correct_live_install
Expand Up @@ -7,8 +7,10 @@
# /etc/sudoers hack to fix #297695
# (Installation Live CD: no need to ask for password of root)
#--------------------------------------
sed -i -e "s/ALL ALL=(ALL) NOPASSWD: ALL/ALL ALL=(ALL) ALL/" /etc/sudoers
chmod 0440 /etc/sudoers
if [ -f /etc/sudoers ] ; then
sed -i -e "s/ALL ALL=(ALL) NOPASSWD: ALL/ALL ALL=(ALL) ALL/" /etc/sudoers
chmod 0440 /etc/sudoers
fi

# bug 544314, we need to use pam-config to correctly reset the gnome-keyring-pam config (see bug 723339)
pam_config_keyring=`rpm -q --scripts gnome-keyring-pam | grep -v " *#" | grep "pam-config *-a" | head -n 1`
Expand All @@ -18,14 +20,27 @@ test -n "$pam_config_keyring" && eval "$pam_config_keyring"
pam-config -d --nullok

# remove unneeded /license.tar.gz
rm /license.tar.gz
rm /license.tar.gz || true

# remove langset stuff
rm /etc/langset.sh
rm -rf /etc/langset/
# remove susestudio files
#rm -rf /studio || true
#rm /bootincluded_archives.filelist || true

# bug 391798
sed -i -e 's,DISPLAYMANAGER_AUTOLOGIN="linux",DISPLAYMANAGER_AUTOLOGIN="",' /etc/sysconfig/displaymanager
# remove langset stuff
rm /etc/langset.sh || true
rm -rf /etc/langset/ || true

# remove default live-cd user, only if there are more users
live_user="linux"
if [ `ls /home | grep -c "^"` != "1" ] && [ -e "/home/${live_user}" ] ; then

# bug 391798
sed -i -e 's,DISPLAYMANAGER_AUTOLOGIN="${live_user}",DISPLAYMANAGER_AUTOLOGIN="",' /etc/sysconfig/displaymanager

userdel ${live_user} || true
rm -rf "/home/${live_user}" || true

fi

rm -f /var/lib/zypp/AnonymousUniqueId
rmdir /livecd || true
Expand Down

0 comments on commit 08df4b1

Please sign in to comment.