liveboot_name="$(cidb_query "SELECT l.build_name from liveboot AS l JOIN jenkins_build AS j ON l.jenkins_build_id = j.id WHERE j.jenkins_build_number = $liveboot_id;")"
kernel_ver="$(cidb_query "SELECT p.version from package_list_view AS p JOIN liveboot AS l ON l.package_list_id = p.package_list_id JOIN jenkins_build AS j ON l.jenkins_build_id = j.id WHERE j.jenkins_build_number = $liveboot_id AND p.name = 'profitbricks-linux-image-pserver';")"
ethoip6_ver="$(cidb_query "SELECT p.version from package_list_view AS p JOIN liveboot AS l ON l.package_list_id = p.package_list_id JOIN jenkins_build AS j ON l.jenkins_build_id = j.id WHERE j.jenkins_build_number = $liveboot_id AND p.name = 'profitbricks-ethoip6-modules-pserver';")"
-resultfile="/srv/liveboot/debug_archives/$liveboot_name-kernel-dbg.tar.xz"
+resultpath="/srv/liveboot/debug_archives"
+resultfile="$liveboot_name-kernel-dbg.tar.xz"
-[ -e $resultfile ] && {
- echo "Error: $resultfile already exists"
+[ -e $resultpath/$resultfile ] && {
+ echo "Error: $resultpath/$resultfile already exists"
exit 1
}
deb http://repo.pb.local/pb-debian-dev ${DIST}-feature-autotest main contrib non-free
EOF
-run_in_chroot apt-get --yes install aptitude
+run_in_chroot apt-get --yes install aptitude pixz
run_in_chroot aptitude update
# assemble ethoip6 debug directory
run_in_chroot find ethoip6_dbg -name "*.ko" -exec mv {} $assembledir/ethoip6-$ethoip6_ver-dbg/ \;
run_in_chroot tee $assembledir/README < $script_dir/README
-tar --owner=root -Ipixz -cf "$resultfile" liveboot-$liveboot_id-kernel-dbg -C $chroot_dir/$workdir
+run_in_chroot tar --owner=root -Ipixz -cf "$resultfile" liveboot-$liveboot_id-kernel-dbg -C $chroot_dir/$workdir
+cp $chroot_dir/$workdir/$resultfile $resultpath
cleanup
session_id=