]> git.proxmox.com Git - pve-container.git/commitdiff
setup: init checking: small code/whitespace cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Nov 2022 17:20:24 +0000 (18:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Nov 2022 17:20:24 +0000 (18:20 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Base.pm

index fe6f0db256f5d6df5ccaa1b26dd3422e564f6e40..4f602f026a3386628564c4bab891e342a297f62c 100644 (file)
@@ -335,15 +335,14 @@ sub get_ct_os_release {
     return &$parse_os_release($data);
 }
 
-# Checks whether /sbin/init is a symlink, and if it is, 
-# resolves it to the actual binary
-sub get_ct_init_path { 
+# Checks whether /sbin/init is a symlink, and if it is, resolves it to the actual binary
+sub get_ct_init_path {
     my ($self) = @_;
 
     my $init = $self->protected_call(sub {
        my $init_path = "/sbin/init";
-       if($self->{plugin}->ct_is_symlink($init_path)) {
-           $init_path = $self->{plugin}->ct_readlink($init_path);
+       if ($self->{plugin}->ct_is_symlink($init_path)) {
+           $init_path = $self->{plugin}->ct_readlink($init_path);
        }
        return $init_path;
     });
index 09155cf98f0938c9ebff4162f8d8855d7899e561..2d05f4edd9e383f85fb1f89541a34139c59d3174 100644 (file)
@@ -526,7 +526,8 @@ sub get_systemd_version {
            my $line = shift;
            if ($line =~ /libsystemd-shared-(\d+)(?:\.[a-zA-Z0-9]*)?\.so:$/) {
                $version = $1;
-           }},
+           }
+       },
        errmsg => "objdump on $init failed",
     );