From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 7C08E1FF0E1 for ; Mon, 13 Jul 2026 15:05:22 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4A69221468; Mon, 13 Jul 2026 15:05:22 +0200 (CEST) From: Christoph Heiss To: pve-devel@lists.proxmox.com Subject: [PATCH installer 1/3] checktime: drop unused script Date: Mon, 13 Jul 2026 15:03:15 +0200 Message-ID: <20260713130320.1197625-2-c.heiss@proxmox.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260713130320.1197625-1-c.heiss@proxmox.com> References: <20260713130320.1197625-1-c.heiss@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1783947872588 X-SPAM-LEVEL: Spam detection results: 0 DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: OIM6H3LILJNAS3B2GN35XO6VHX4AW23Z X-Message-ID-Hash: OIM6H3LILJNAS3B2GN35XO6VHX4AW23Z X-MailFrom: c.heiss@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This has been unused since 5490bc6 ("remove call to /usr/bin/checktime") which removed the last callsite of this script in 2012. Signed-off-by: Christoph Heiss --- Makefile | 2 -- checktime | 26 -------------------------- debian/install | 1 - 3 files changed, 29 deletions(-) delete mode 100755 checktime diff --git a/Makefile b/Makefile index bb5dc86..acf99d5 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,6 @@ $(BUILDDIR): Proxmox/ \ Xdefaults \ banner/ \ - checktime \ country.pl \ html/ \ interfaces \ @@ -134,7 +133,6 @@ install: $(INSTALLER_SOURCES) $(COMPILED_BINS) install -D -m 755 proxinstall $(DESTDIR)/usr/bin/proxinstall install -D -m 755 proxmox-low-level-installer $(DESTDIR)/$(BINDIR)/proxmox-low-level-installer $(foreach i,$(USR_BIN), install -m755 $(CARGO_COMPILEDIR)/$(i) $(DESTDIR)$(BINDIR)/ ;) - install -D -m 755 checktime $(DESTDIR)/usr/bin/checktime install -D -m 644 xinitrc $(DESTDIR)/.xinitrc install -D -m 755 spice-vdagent.sh $(DESTDIR)/.spice-vdagent.sh install -D -m 644 Xdefaults $(DESTDIR)/.Xdefaults diff --git a/checktime b/checktime deleted file mode 100755 index 723edd6..0000000 --- a/checktime +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/perl -w - -use strict; -use warnings; - -use File::stat; -use POSIX qw(strftime); - -sub testtime { - my $st = stat("/usr/bin/checktime") || stat("./checktime"); - - my $ctime = time(); - - if ($ctime < $st->atime) { - my $system_time_str = strftime "%F %T", localtime $ctime; - my $pkg_time_str = strftime "%F %T", localtime $st->atime; - warn "detected wrong system time $system_time_str, older than installer ($pkg_time_str)\n"; - my $tstr = localtime $st->atime; - # correct system time to avoid errors, i.e gpg fails - system ("date -s '$tstr'"); - } -} - -testtime(); - -exit (0); diff --git a/debian/install b/debian/install index 132220a..291347f 100644 --- a/debian/install +++ b/debian/install @@ -8,7 +8,6 @@ banner/pve-banner.png /var/lib/proxmox-installer etc html /var/lib/proxmox-installer/ usr/sbin -usr/bin/checktime usr/bin/proxinstall usr/bin/proxmox-auto-installer usr/bin/proxmox-chroot -- 2.54.0