about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2012-08-29 16:48:08 +0200
committerJuan RP <xtraeme@gmail.com>2012-08-29 16:48:08 +0200
commit0afde3876fb7f7446899e9e20f9115f32c53e2b8 (patch)
treed293abc77a7ff510c6748daec5dff9fc9c43622c
parent6f65afafa5fab4c60984cd1b5205c3debee41d1c (diff)
downloadhrmpf-0afde3876fb7f7446899e9e20f9115f32c53e2b8.tar.gz
hrmpf-0afde3876fb7f7446899e9e20f9115f32c53e2b8.tar.xz
hrmpf-0afde3876fb7f7446899e9e20f9115f32c53e2b8.zip
Update for xbps>=0.17, support new login with pam.
-rw-r--r--mklive.sh.in16
1 files changed, 6 insertions, 10 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index e145fd4..801567d 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -240,8 +240,8 @@ if [ -n "$REPOSITORY_CACHE" ]; then
 fi
 XBPS_VERSION=$($XBPS_BIN_CMD -V|awk '{print $2}')
 case $XBPS_VERSION in
-	# XBPS >= 0.16.6
-	[0-9].[1-9][6-9].[6-9]*) XBPS_016_6=1;;
+	# XBPS >= 0.17
+	[0-9].[1-9][7-9]*) XBPS_017=1;;
 esac
 
 info_msg "Redirecting stdout/stderr to $LOGFILE ..."
@@ -335,7 +335,7 @@ while [ $# -ne 0 ]; do
 	cp -f $bpkg $ROOTFS/packages/$arch
 	ln -sfr $ROOTFS/packages/$arch/$binpkg $ROOTFS/packages/$binpkg
 done
-if [ -n "$XBPS_016_6" ]; then
+if [ -n "$XBPS_017" ]; then
 	$XBPS_REPO_CMD index-add $ROOTFS/packages/*.xbps 2>&1 >>$LOGFILE
 	rm -f $ROOTFS/packages/index-files.plist
 else
@@ -343,16 +343,12 @@ else
 	rm -f $ROOTFS/packages/index-files.plist
 fi
 
-# install lsblk and blkid from util-linux. to avoid installing
-# the whole package.
+# Install some required utilities from util-linux.
 _lsblk=$(which lsblk)
-_blkid=$(which blkid)
 install -Dm755 ${_lsblk} "$ROOTFS/usr/bin/lsblk" || error_out $?
-install -Dm755 ${_blkid} "$ROOTFS/usr/sbin/blkid" || error_out $?
-
-# install mount from util-linux.
-install -Dm755 /bin/mount "$ROOTFS/usr/bin/mount" || error_out $?
 
+# We rely on pam now, so let's install the host login config.
+install -Dm644 /etc/pam.d/login "$ROOTFS/etc/pam.d/login" || error_out $?
 #
 # The pseudofs aren't needed anymore in target rootfs.
 #