diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-02 16:36:17 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-02 16:36:17 -0600 |
commit | 78c04a84d36f3c05fd0db42c5bbe5c4d83c6b405 (patch) | |
tree | 54aaf146fad055e103a4b7af7b46f49d8169ffa7 | |
parent | c75faff5f623a44a6ca171d7e1d2db00bf10dca8 (diff) | |
download | image-78c04a84d36f3c05fd0db42c5bbe5c4d83c6b405.tar.gz image-78c04a84d36f3c05fd0db42c5bbe5c4d83c6b405.tar.bz2 image-78c04a84d36f3c05fd0db42c5bbe5c4d83c6b405.tar.xz image-78c04a84d36f3c05fd0db42c5bbe5c4d83c6b405.zip |
adelie-build-cd: Fix service stuff the same as packages
-rwxr-xr-x | adelie-build-cd | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/adelie-build-cd b/adelie-build-cd index 82da436..a53b453 100755 --- a/adelie-build-cd +++ b/adelie-build-cd @@ -183,14 +183,18 @@ make_structure() { done for bootservice in root binfmt bootmisc fsck hostname hwclock keymaps \ - localmount loopback modules mtab procfs sysctl sysfsconf termencoding \ - tmpfiles.setup urandom; do + localmount loopback modules mtab procfs sysctl sysfsconf \ + termencoding tmpfiles.setup urandom; do ln -s /etc/init.d/$bootservice \ squashroot-$ARCH/etc/runlevels/boot/$bootservice done - for service in $(cat services/base 2>/dev/null || echo '') - $(cat services/kind/$KIND 2>/dev/null || echo ''); do + for base_service in "$(cat services/base 2>/dev/null | tr '\n' ' ' || echo '')"; do + ln -s /etc/init.d/$base_service \ + sqaushroot-$ARCH/etc/runlevels/default/$base_service + done + + for service in "$(cat services/kind/$KIND 2>/dev/null | tr '\n' ' ' || echo '')"; do ln -s /etc/init.d/$service \ sqaushroot-$ARCH/etc/runlevels/default/$service done |