summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-12-05 21:24:16 +0100
committer Eric Hameleers <alien@slackware.com>2020-12-05 21:24:16 +0100
commitc7ad01ef6806857c4c6b1794c652a67ae1fee7ef (patch)
tree8b0a5dacecb6fd9412428576ada8319ccdbfda8a /make_slackware_live.sh
parent75e3df8cc4bb3a55e339946b959e162c73160480 (diff)
downloadliveslak-c7ad01ef6806857c4c6b1794c652a67ae1fee7ef.tar.gz
liveslak-c7ad01ef6806857c4c6b1794c652a67ae1fee7ef.tar.xz
Add getfattr to the live initrd, to read extended attributes
The busybox does not (no longer?) have this tool.
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 9d62f19..b344783 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -2877,6 +2877,12 @@ tar -C ${LIVE_ROOTDIR}/boot/initrd-tree/ -xf ${DHCPD_PKG} \
var/lib/dhcpcd lib/dhcpcd sbin/dhcpcd usr/lib${DIRSUFFIX}/dhcpcd \
etc/dhcpcd.conf.new
mv ${LIVE_ROOTDIR}/boot/initrd-tree/etc/dhcpcd.conf{.new,}
+# Add getfattr to read extended attributes (even if we won't need it):
+ATTR_PKG=$(find ${DEF_SL_PKGROOT}/../ -name "attr-*.t?z" |head -1)
+tar --wildcards -C ${LIVE_ROOTDIR}/boot/initrd-tree/ -xf ${ATTR_PKG} \
+ lib${DIRSUFFIX}/libattr.so.* usr/bin/getfattr
+# Generate library symlinks for libattr (getfattr depends on them):
+( cd ${LIVE_ROOTDIR}/boot/initrd-tree/lib${DIRSUFFIX} ; ldconfig -n . )
# Stamp the Slackware version into the initrd (at least dhcpcd needs this):
mkdir -p ${LIVE_ROOTDIR}/boot/initrd-tree/etc/rc.d
cp -a ${LIVE_ROOTDIR}/etc/slackware-version ${LIVE_ROOTDIR}/etc/os-release \