3 Commitit 33af5b02e4 ... b6ace7f982

Tekijä SHA1 Viesti Päivämäärä
  Arnaud Fontaine b6ace7f982 archive: dbus/rc.main: dbus-daemon failed to start ("Failed to bind socket /var/run/dbus/system_bus_socket"). 5 vuotta sitten
  Arnaud Fontaine 4d4b6ab464 bootscripts: rc.conf setttings were not considered at all (variable name instead of its value was checked). 5 vuotta sitten
  Arnaud Fontaine ad1f1f6a25 enter-chroot: lzlib.h is needed for Stage 2, so add it to 'apt install' command. 5 vuotta sitten
3 muutettua tiedostoa jossa 7 lisäystä ja 8 poistoa
  1. 1 1
      CHEATSHEET.md
  2. 1 0
      archive/dbus/rc.main
  3. 5 7
      archive/etc/rc.d/rc.startup

+ 1 - 1
CHEATSHEET.md

@@ -20,7 +20,7 @@ Bootstrapping from Debian systems:
 
 `apt upgrade`
 
-`apt install build-essential flex git lzip genisoimage texinfo unzip zlib1g zlib1g-dev liblz1`
+`apt install build-essential flex git lzip genisoimage texinfo unzip zlib1g zlib1g-dev liblz1 liblz-dev`
 
 ### Instructions:
 

+ 1 - 0
archive/dbus/rc.main

@@ -18,6 +18,7 @@ start()
     # Validate or generate unique ID file (/var/lib/dbus/machine-id)
     /usr/bin/dbus-uuidgen --ensure
 
+    mkdir -p /var/run/dbus
     exec /usr/bin/dbus-daemon --nofork --system --nopidfile
 }
 

+ 5 - 7
archive/etc/rc.d/rc.startup

@@ -166,15 +166,13 @@ then
     while IFS='=' read -r variable value
     do
         case $variable in
-        \#* | "")       # Ignore commented or blank lines
-            continue
+        RC_?*)
+            if test -z "$(eval \$$variable)"
+            then
+                eval "$variable=\${value}"
+            fi
             ;;
         esac
-
-        if test -z "$variable"
-        then
-            eval "$variable=\${value}"
-        fi
     done < /etc/rc.conf
 fi