* [pve-devel] [PATCH dab] fix an error on creating a debian trixie image
@ 2024-12-07 8:42 Jing Luo via pve-devel
0 siblings, 0 replies; only message in thread
From: Jing Luo via pve-devel @ 2024-12-07 8:42 UTC (permalink / raw)
To: pve-devel; +Cc: Jing Luo
[-- Attachment #1: Type: message/rfc822, Size: 5541 bytes --]
From: Jing Luo <jing@jing.rocks>
To: pve-devel@lists.proxmox.com
Cc: Jing Luo <jing@jing.rocks>
Subject: [PATCH dab] fix an error on creating a debian trixie image
Date: Sat, 7 Dec 2024 17:42:28 +0900
Message-ID: <20241207084248.1067860-1-jing@jing.rocks>
debian trixie no longer ships "/etc/sysctl.conf", so this fix is needed.
Signed-off-by: Jing Luo <jing@jing.rocks>
---
PVE/DAB.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/DAB.pm b/PVE/DAB.pm
index f318be5..9e80d6e 100644
--- a/PVE/DAB.pm
+++ b/PVE/DAB.pm
@@ -1601,7 +1601,9 @@ EOD
$cmd .= ' -e \'s/^\(fs\.inotify\.max_user_watches.*\)/#\1/\'';
$cmd .= ' -e \'s/^\(vm\.mmap_min_addr.*\)/#\1/\'';
$cmd .= " -i '$rootdir/etc/sysctl.conf'";
- $self->run_command ($cmd);
+ if (-f "$rootdir/etc/sysctl.conf") {
+ $self->run_command ($cmd);
+ }
my $bindv6only = "$rootdir/etc/sysctl.d/bindv6only.conf";
if (-f $bindv6only) {
--
2.47.1
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-07 8:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-07 8:42 [pve-devel] [PATCH dab] fix an error on creating a debian trixie image Jing Luo via pve-devel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal