OSDN Git Service

[update] : update serene channels
authormk-linux419 <m.k419sabuaka@gmail.com>
Wed, 19 Aug 2020 11:43:04 +0000 (20:43 +0900)
committermk-linux419 <m.k419sabuaka@gmail.com>
Wed, 19 Aug 2020 11:43:04 +0000 (20:43 +0900)
channels/serene/airootfs/etc/apt/apt.conf.d/01norecommend [deleted file]
channels/serene/airootfs/etc/lightdm/lightdm.conf
channels/serene/airootfs/root/customize_airootfs_serene.sh
lubs

diff --git a/channels/serene/airootfs/etc/apt/apt.conf.d/01norecommend b/channels/serene/airootfs/etc/apt/apt.conf.d/01norecommend
deleted file mode 100644 (file)
index c378775..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-APT::Install-Recommends "0";
-APT::Install-Suggests "0";
\ No newline at end of file
index 5f6452c..046f443 100644 (file)
@@ -1,2 +1,7 @@
 [SeatDefaults]
-greeter-session=lightdm-webkit2-greeter
\ No newline at end of file
+greeter-session=lightdm-webkit2-greeter
+
+[Seat:*]
+autologin-guest=false
+autologin-user=%USERNAME%
+autologin-user-timeout=0
\ No newline at end of file
index 75df6b3..9ec3d92 100644 (file)
 # customize_airootfs_serene.sh
 #
 
-echo "customize_airootfs.sh has been executed."
\ No newline at end of file
+set -e -u
+
+# Default value
+# All values can be changed by arguments.
+password="liveuser"
+username="liveuser"
+usershell="/bin/bash"
+debug=true
+
+
+# Parse arguments
+while getopts 'p:bt:k:rxju:o:i:s:da:' arg; do
+    case "${arg}" in
+        p) password="${OPTARG}" ;;
+        u) username="${OPTARG}" ;;
+        s) usershell="${OPTARG}" ;;
+        d) debug=true ;;
+        x) debug=true; set -xv ;;
+        a) arch="${OPTARG}"
+    esac
+done
+
+# Enable LightDM to auto login
+systemctl enable lightdm.service
+
+# Replace auto login user
+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
\ No newline at end of file
diff --git a/lubs b/lubs
index 5fdd4ef..bbba485 100755 (executable)
--- a/lubs
+++ b/lubs
@@ -412,6 +412,7 @@ make_customize_airootfs() {
             run_cmd "${2}" "${_customize_siript_options}"
         fi
     }
+    
     run_customize_script "${work_dir}/airootfs/root/customize_airootfs.sh" "/root/customize_airootfs.sh"
     run_customize_script "${work_dir}/airootfs/root/customize_airootfs_${channel_name}.sh"  "/root/customize_airootfs_${channel_name}.sh"
 }