diff options
author | Juan RP <xtraeme@gmail.com> | 2014-05-23 11:30:24 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-05-23 11:30:24 +0200 |
commit | 3b5b9cba6a69b191faccae4d8c798b5fc84dc704 (patch) | |
tree | 4e1478ff392a4917a2f9f81a6e41a7f369579ede /mklive.sh.in | |
parent | 11e39d0fbc5de4c9ada783c34f9d02bee74d21d0 (diff) | |
download | hrmpf-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.in | 6 |
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 |