summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-04-28 11:01:00 +0200
committerJuan RP <xtraeme@gmail.com>2014-04-28 11:01:00 +0200
commit30c13a8fb4d4211332dc450edcc7057fa93309a9 (patch)
treec071499152216dbf06c38b9fc159482d34c16f72 /mklive.sh.in
parenta9ea9ea750a16993066bec4fa305a5de29c3ce0b (diff)
downloadhrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.tar.gz
hrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.tar.xz
hrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.zip
mklive: redirect to logfile when reconfiguring locales; load loop kmod too.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 1ca2d4f..48dc866 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -134,7 +134,7 @@ install_packages() {
 
     # 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
+    xbps-uchroot $ROOTFS xbps-reconfigure -f glibc-locales >>$LOGFILE 2>&1
 
     if [ -x installer.sh ]; then
         install -Dm755 installer.sh $ROOTFS/usr/sbin/void-installer
@@ -213,6 +213,7 @@ generate_grub_efi_boot() {
 
 generate_squashfs() {
     # Find out required size for the rootfs and create an ext3fs image off it.
+    modprobe -q loop
     ROOTFS_SIZE=$(du -sk "$ROOTFS"|awk '{print $1}')
     mkdir -p "$BUILDDIR/tmp/LiveOS"
     dd if=/dev/zero of="$BUILDDIR/tmp/LiveOS/ext3fs.img" \