about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-23 11:30:24 +0200
committerJuan RP <xtraeme@gmail.com>2014-05-23 11:30:24 +0200
commit3b5b9cba6a69b191faccae4d8c798b5fc84dc704 (patch)
tree4e1478ff392a4917a2f9f81a6e41a7f369579ede /mklive.sh.in
parent11e39d0fbc5de4c9ada783c34f9d02bee74d21d0 (diff)
downloadhrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.tar.gz
hrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.tar.xz
hrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.zip
mklive: do not assume glibc and/or systemd (might use musl and runit instead :-).
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 7281306..d47f611 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -113,8 +113,10 @@ install_packages() {
     ${XBPS_REMOVE_CMD} -r $ROOTFS $XBPS_CACHEDIR -o >>$LOGFILE 2>&1
 
     # Enable choosen UTF-8 locale and generate it into the target rootfs.
-    sed -e "s/\#\(${LOCALE}.*\)/\1/g" -i $ROOTFS/etc/default/libc-locales
-    xbps-uchroot $ROOTFS xbps-reconfigure -f glibc-locales >>$LOGFILE 2>&1
+    if [ -f $ROOTFS/etc/default/libc-locales ]; then
+        sed -e "s/\#\(${LOCALE}.*\)/\1/g" -i $ROOTFS/etc/default/libc-locales
+        xbps-uchroot $ROOTFS xbps-reconfigure -f glibc-locales >>$LOGFILE 2>&1
+    fi
 
     if [ -x installer.sh ]; then
         install -Dm755 installer.sh $ROOTFS/usr/sbin/void-installer