OSDN Git Service

[fix] : Fixed issue where users were not created.
authorhayao <shun819.mail@gmail.com>
Tue, 3 Mar 2020 03:39:32 +0000 (12:39 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 3 Mar 2020 03:39:32 +0000 (12:39 +0900)
airootfs/root/customize_airootfs.sh
build.sh

index be8dc45..a9f2942 100755 (executable)
@@ -34,7 +34,7 @@ locale-gen
 ln -sf /usr/share/zoneinfo/UTC /etc/localtime
 
 
-if ${rebuild}; then
+if [[ ${rebuild} = false ]] then
     # Creating a root user.
     # usermod -s /usr/bin/zsh root
 
index 6195c5f..d927a68 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -227,6 +227,9 @@ make_customize_airootfs() {
     if ${debug}; then
         options="${options} -x"
     fi
+    if ${rebuild}: then
+        options="${options} -r"
+    fi
     if [[ -z ${options} ]]; then
         mkarchiso ${alteriso_option} -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" -r "/root/customize_airootfs.sh -p ${password}" run
     else