upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
-packages: /pve/${RELEASE}/install/pve.files
- rm -rf packages packages.tmp; mkdir packages.tmp
- for i in `cat $<`; do install -m 644 $$i packages.tmp/; done
- mv packages.tmp packages
-
test.img:
dd if=/dev/zero of=test.img bs=2048 count=1M
-check: packages test.img
- G_SLICE=always-malloc ./proxinstall -t test.img
+check: ${DEB} test.img
+ rm -rf testdir
+ dpkg -X ${DEB} testdir
+ G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
.phony: clean
clean:
my $files;
if ($opt_testmode) {
- $files = file_read_firstline("/pve/$release/install/pve-base.cnt");
+ $files = file_read_firstline("../pve-cd-builder/base.cnt");
} else {
- $files = file_read_firstline("/cdrom/proxmox/pve-base.cnt");
+ $files = file_read_firstline("/cdrom/proxmox/$setup->{product}-base.cnt");
}
my $per = 0;
grub-pc grub-pc/install_devices select $grub_install_devices_txt
_EOD
- my $pkgdir = $opt_testmode ? "packages" : "/cdrom/proxmox/packages";
+ my $pkgdir = $opt_testmode ? "../pve-cd-builder/tmp/data-gz/proxmox/packages/" : "/cdrom/proxmox/packages";
my $pkg_count = 0;
while (<$pkgdir/*.deb>) { $pkg_count++ };
my $tdir = $opt_testmode ? "target" : "/target";
mkdir $tdir;
- my $base = $opt_testmode ? "/pve/$release/install/pve-base.squashfs" : "/cdrom/pve-base.squashfs";
+ my $base = $opt_testmode ? "../pve-cd-builder/base.squashfs" : "/cdrom/$setup->{product}-base.squashfs";
eval { extract_data ($base, $tdir); };
my $err = $@;