Warnings thrown during updates

v7
updates

(Eddie Atherton) #1

NethServer Version: 7.4
Module: updates

These don’t seem to cause any issues, but thought I would pass them on:

May  9 10:15:29 Nethserver esmith::event[20767]: expanding /etc/fstab
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/50options: Use of uninitialized value $property in string eq at /usr/share/perl5/vendor_perl/esmith/DB/db/Record.pm line 167.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/50options: Use of uninitialized value in hash element at /etc/e-smith/templates//etc/fstab/50options line 10.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/50options: Use of uninitialized value $property in string eq at /usr/share/perl5/vendor_perl/esmith/DB/db/Record.pm line 167.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/50options: Use of uninitialized value in hash element at /etc/e-smith/templates//etc/fstab/50options line 10.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/99writefile: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/fstab/99writefile line 4.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/99writefile: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/fstab/99writefile line 4.
*** repeated a bunch more times ***
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING in /etc/e-smith/templates//etc/fstab/99writefile: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/fstab/99writefile line 4.
May  9 10:15:29 Nethserver esmith::event[20767]: WARNING: Template processing succeeded for //etc/fstab: 16 fragments generated warnings
May  9 10:15:29 Nethserver esmith::event[20767]: at /etc/e-smith/events/actions/generic_template_expand line 64.

Cheers.


(Markus Neuberger) #2

I couldn’t reproduce it or find it my logs, do you have some special fstab config?

config show fstab


(Eddie Atherton) #3
[root@Nethserver ~]# config show fstab
fstab=configuration
    /=defaults
[root@Nethserver ~]#

And my /etc/fstab at the point the update was run:

[root@Nethserver ~]# cat /etc/fstab
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the NethServer software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
#------------------------------------------------------------
/dev/mapper/cl-root     /       xfs     defaults        0 0
UUID=24f31a2d-cecb-4238-aa6b-00ed87db1db4       /boot   xfs     defaults       0 0
/dev/mapper/cl-swap     swap    swap    defaults        0 0
/var/lib/nethserver/home        /home   none    defaults,bind   0 0
/dev/mapper/cl-PlexLib  /var/lib/plexmediaserver        xfs     defaults       0 0
[root@Nethserver ~]#

Cheers.


(Markus Neuberger) #4

Can you reproduce it with expand-template /etc/fstab ?


(Eddie Atherton) #5

Nope, that doesn’t throw any warnings/errors.

Cheers.


(Davide Principi) #6

:thinking: we could remove the /etc/fstab template, as the default xfs filesystem has posix ACL support integrated. Those that still want ext4 can edit the file by hand… /CC @dev_team


(Giacomo Sanchietti) #7

I totally agree: removing old code is always fun! :smiley: