dracut-crypt-ssh: fix escaping for ampersands in sed script (#5542)

This commit is contained in:
Johannes 2017-01-16 17:17:03 +01:00 committed by Alessio Sergi
parent 127786d22a
commit eb3194113f

View file

@ -1,7 +1,7 @@
# Template file for 'dracut-crypt-ssh'
pkgname=dracut-crypt-ssh
version=1.0.3
revision=1
revision=2
build_style=gnu-configure
conf_files="/etc/dracut.conf.d/crypt-ssh.conf"
hostmakedepends="dracut"
@ -20,6 +20,6 @@ pre_configure() {
sed -i 's/gcc/$(CC)/' modules/60crypt-ssh/helper/Makefile
sed -i "s|CFLAGS=|CFLAGS=${CFLAGS} ${LDFLAGS} |" modules/60crypt-ssh/helper/Makefile
sed -i 's|/lib64/libnss_files.so.2||' modules/60crypt-ssh/module-setup.sh
sed -i '107s|$|\n [ -f /lib/libnss_files.so.2 ] && dracut_install /lib/libnss_files.so.2|' \
sed -i '107s|$|\n [ -f /lib/libnss_files.so.2 ] \&\& dracut_install /lib/libnss_files.so.2|' \
modules/60crypt-ssh/module-setup.sh
}