]> git.wh0rd.org Git - home.git/commitdiff
installkernel: compress files directly
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Mar 2015 17:34:44 +0000 (13:34 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 24 Mar 2015 17:34:44 +0000 (13:34 -0400)
.bin/installkernel

index 6180eb6f0a8f09ad7f23e679ec6e862b1b7387ed..ec6ceb6c91a32ff29d38ffe143fd6b8730ed6cf0 100755 (executable)
@@ -29,11 +29,9 @@ case ${img} in
        done
        popd >/dev/null
 
-       rm -f ${dir}/{config,System.map}-${ver}.xz
        cp ${img} ${dir}/image-${ver}
-       cp ${map} ${dir}/System.map-${ver}
-       cp .config ${dir}/config-${ver}
-       xz -9f ${dir}/{config,System.map}-${ver}
+       xz -9c ${map} > ${dir}/System.map-${ver}.xz
+       xz -9c .config > ${dir}/config-${ver}.xz
        ln -sf image-${ver} ${dir}/image
        zipl
        exit 0