summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-06-29 19:51:24 +0200
committerJonas Smedegaard <dr@jones.dk>2014-06-29 19:59:25 +0200
commit40a5a284ec823e6399b178dfe6919b2a3459207a (patch)
treee3a58d746b20b7cff95fb36352cd2ec5b6ace509
parent8acc18a0b4537f3c5f323e172e5ccaa86b6937d5 (diff)
Fix chroot and other /target prefixing for script.sh.
-rwxr-xr-xbin/pkglist2preseed2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pkglist2preseed b/bin/pkglist2preseed
index 61300a3..696398c 100755
--- a/bin/pkglist2preseed
+++ b/bin/pkglist2preseed
@@ -25,6 +25,8 @@ perl -p \
-e 's,__PKGLIST__,$ENV{"pkglist"},;'\
-e 's,__TWEAKDESC__,$ENV{"tweakdesc"},;'\
-e 's,__TWEAKLIST__,$ENV{"tweaklist"},;'\
+ -e 's,chroot\s+/target\s+,,g;'\
+ -e 's,/target/,/,g;'\
< $altinfile \
> $altoutfile~
mv -f $altoutfile~ $altoutfile