LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File correct_live_for_reboot of Package kiwi-config-openSUSE (Project openSUSE:Factory:Live)

#! /bin/sh

# this script is called from the live installer once it finished copying the live
# image. So we only do the minimal changes necessary to reboot into the system

is_usb=0
if test "$1" = usb; then
  is_usb=1
fi

chkconfig sshd on
chkconfig cron on
if test -e /etc/init.d/boot.compcache; then
   chkconfig boot.compcache off
fi
rm /etc/systemd/system/multi-user.target.wants/clicfs.service /usr/lib/systemd/system/sysinit.target.wants/langset.service
rm /etc/systemd/system/clicfs.service /etc/systemd/system/multi-user.target.wants/clicfs.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~