OSDN Git Service

fixed bind
authorkokkiemouse <kokkiemouse@gmail.com>
Wed, 4 Nov 2020 13:28:15 +0000 (22:28 +0900)
committerkokkiemouse <kokkiemouse@gmail.com>
Wed, 4 Nov 2020 13:28:15 +0000 (22:28 +0900)
Signed-off-by: kokkiemouse <kokkiemouse@gmail.com>
lfbs

diff --git a/lfbs b/lfbs
index 6f1a990..1a0a650 100755 (executable)
--- a/lfbs
+++ b/lfbs
@@ -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