OSDN Git Service

fixed bind
[alterlinux/LFBS.git] / lfbs
diff --git a/lfbs b/lfbs
index 0ad4b61..1a0a650 100755 (executable)
--- a/lfbs
+++ b/lfbs
@@ -18,7 +18,7 @@ script_path=$(readlink -f "${0%/*}")
 work_dir="${script_path}/work"
 channels_dir="${script_path}/channels"
 nfb_dir="${script_path}/nfb"
-codename="32"
+codename="33"
 os_name="SereneLinux"
 iso_name="Fedora"
 language="ja_JP.UTF-8"
@@ -142,10 +142,11 @@ run_once() {
 run_cmd() {
     local mount
 
-    for mount in "dev" "dev/pts" "proc" "sys" "etc/resolv.conf"; do
+    for mount in "dev" "dev/pts" "proc" "sys" "run/systemd/resolve/stub-resolv.conf"; do
     #for mount in "dev" "dev/pts" "proc" "sys" ; do
-        if [[ "${mount}" == "etc/resolv.conf" ]]; then
-            cp /etc/resolv.conf "${work_dir}/airootfs/${mount}"
+        if [[ "${mount}" == "run/systemd/resolve/stub-resolv.conf" ]]; then
+            # cp /etc/resolv.conf "${work_dir}/airootfs/run${mount}"
+            mount --bind /etc/resolv.conf "${work_dir}/airootfs/run/systemd/resolve/stub-resolv.conf"
         else
             mount --bind /${mount} "${work_dir}/airootfs/${mount}"
         fi