]> spindle.queued.net Git - xodist/blobdiff - initchroot.sh
initchroot: fix a buglet that left initramfs/kernel packages in /
[xodist] / initchroot.sh
index 9e0a6488e360a4cb8d098de8a5acef9068a16ea6..fcf3071cd74a9c6a99718264c5b4928e345979a5 100755 (executable)
@@ -141,7 +141,7 @@ for i in $k; do
        wget --continue -O cache/${pkg} ${i}
        cp cache/${pkg} ${ROOT_DIR}/${pkg} 
        (chroot ${ROOT_DIR} dpkg -i /${pkg})
-       rm -f ${ROOT_DIR}/${k}
+       rm -f ${ROOT_DIR}/${pkg}
 done
 
 # ensure certain modules get loaded during boot