OSDN Git Service

Function dnfstrap
authorhayao <shun819.mail@gmail.com>
Tue, 22 Sep 2020 04:27:57 +0000 (13:27 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 22 Sep 2020 04:27:57 +0000 (13:27 +0900)
lfbs

diff --git a/lfbs b/lfbs
index 4ca1f2b..6247ff5 100755 (executable)
--- a/lfbs
+++ b/lfbs
@@ -254,11 +254,14 @@ _usage () {
     done
 }
 
+dnfstrap() {
+    dnf --installroot="${work_dir}/airootfs" $(${script_path}/system/repository-json-parser.py ${script_path}/system/repository.json) install ${@} -y
+}
 
 
 make_basefs() {
     _msg_info "Installing Fedora to '${work_dir}/airootfs'..."
-    dnf --installroot="${work_dir}/airootfs" $(${script_path}/system/repository-json-parser.py ${script_path}/system/repository.json) install @Core -y
+    dnfstrap @Core
     _msg_info "${codename} installed successfully!"
     
     echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}' > "${work_dir}/airootfs/etc/bash.bashrc"