OSDN Git Service

[update] : Create backup and remove comments.
authorYamadaHayao <shun819.mail@gmail.com>
Sun, 9 Feb 2020 15:13:27 +0000 (00:13 +0900)
committerYamadaHayao <shun819.mail@gmail.com>
Sun, 9 Feb 2020 15:13:27 +0000 (00:13 +0900)
airootfs/root/customize_airootfs.sh
build.sh

index 17f5143..daf0aaf 100755 (executable)
@@ -60,36 +60,9 @@ if [[ $boot_splash = true ]]; then
     rm /usr/share/calamares/modules/services.conf
     mv /usr/share/calamares/modules/services-plymouth.conf /usr/share/calamares/modules/services.conf
 
-    rm /usr/share/calamares/modules/plymouthcfg.conf
-
-    function write () {
-        echo $@ >> /usr/share/calamares/modules/plymouthcfg.conf
-    }
-
-    write '# Plymouth Configuration Module'
-    write '#'
-    write '# This module can be used to setup the default plymouth theme to '
-    write '# be used with your distribution'
-    write '#'
-    write '# You should only use this module if the plymouth package is installed '
-    write '# on the build configurations of your distribution & the plymouth '
-    write '# theme you want to configure is installed as well. If the unpacked'
-    write '# filesystem configures a plymouth theme already, there is no need'
-    write '# to change it here.'
-    write '---'
-    write
-    write
-    write '# Leave this commented if you want to use the default theme '
-    write '# shipped with your distribution configurations. Make sure that '
-    write '# the theme exists in the themes directory of plymouth path. '
-    write '# Debian / Ubuntu comes with themes "joy", "script", "softwaves",'
-    write '# possibly others. Look in /usr/share/plymouth/themes for more.'
-    write '#'
-    write '# Specifying a non-existent theme will leave the plymouth'
-    write '# configuration set to that theme. It is up to plymouth to'
-    write '# deal with that.'
-    write
-    write "plymouth_theme: ${theme_name}"
+    cp /usr/share/calamares/modules/plymouthcfg.conf /usr/share/calamares/modules/plymouthcfg.conf.org
+    echo '---' > /usr/share/calamares/modules/plymouthcfg.conf
+    echo "plymouth_theme: ${theme_name}" >> /usr/share/calamares/modules/plymouthcfg.conf
 
 else
     rm /usr/share/calamares/modules/services-plymouth.conf
index 722fe11..5d57d03 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -18,6 +18,9 @@ boot_splash=false
 verbose="-v"
 script_path=$(readlink -f ${0%/*})
 
+theme_name="alter-logo"
+theme_pkg="plymouth-theme-alter-logo-git"
+
 source plymouth-theme
 
 umask 0022