diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-28 11:01:00 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-28 11:01:00 +0200 |
commit | 30c13a8fb4d4211332dc450edcc7057fa93309a9 (patch) | |
tree | c071499152216dbf06c38b9fc159482d34c16f72 | |
parent | a9ea9ea750a16993066bec4fa305a5de29c3ce0b (diff) | |
download | hrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.tar.gz hrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.tar.xz hrmpf-30c13a8fb4d4211332dc450edcc7057fa93309a9.zip |
mklive: redirect to logfile when reconfiguring locales; load loop kmod too.
-rw-r--r-- | mklive.sh.in | 3 |
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" \ |