[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#963573: marked as done (partman-target: please add systemd hints to fstab)



Your message dated Sun, 12 Jul 2020 11:49:17 +0000
with message-id <E1juaTt-000ECY-3i@fasolo.debian.org>
and subject line Bug#963573: fixed in partman-target 118
has caused the Debian Bug report #963573,
regarding partman-target: please add systemd hints to fstab
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
963573: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963573
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: partman-target
Version: 115

Dear Installer Team,

please consider adding words informing users they should run
"systemctl daemon-reload" after changing /etc/fstab.

With stale mount units from an older /etc/fstab, users might observe
"interesting surprises", f.e. systemd might umount newly mounted
filesystems, if the in-memory mount units conflict with info in
/etc/fstab.

Please find a potential patch attached.

Thanks,
Chris

>From 0cae8e3d5e18fae9961894336f5cd9bd0fdcc7f2 Mon Sep 17 00:00:00 2001
From: Chris Hofstaedtler <zeha@debian.org>
Date: Tue, 23 Jun 2020 23:24:33 +0200
Subject: [PATCH] create_fstab_header: add systemd hints

systemd reads /etc/fstab to generate mount units. They become stale
in-memory configuration after fstab is changed, and this can lead
to nasty surprises.

Example: systemd might unmount newly mounted filesystems, if
/etc/fstab had conflicting info previously.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
---
 finish.d/create_fstab_header | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/finish.d/create_fstab_header b/finish.d/create_fstab_header
index e99fa5e..560087a 100755
--- a/finish.d/create_fstab_header
+++ b/finish.d/create_fstab_header
@@ -11,6 +11,9 @@ case `udpkg --print-os` in
 # device; this may be used with UUID= as a more robust way to name devices
 # that works even if disks are added and removed. See fstab(5).
 #
+# systemd generates mount units based on this file, see systemd.mount(5).
+# Please run 'systemctl daemon-reload' after making changes here.
+#
 EOF
 		printf "%-15s %-15s %-7s %-15s %-7s %s\n" '# <file system>' '<mount point>' '<type>' '<options>' '<dump>' '<pass>' >> /target/etc/fstab
 	;;
-- 
2.27.0


--- End Message ---
--- Begin Message ---
Source: partman-target
Source-Version: 118
Done: Holger Wansing <hwansing@mailbox.org>

We believe that the bug you reported is fixed in the latest version of
partman-target, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 963573@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Holger Wansing <hwansing@mailbox.org> (supplier of updated partman-target package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 12 Jul 2020 13:21:34 +0200
Source: partman-target
Architecture: source
Version: 118
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Holger Wansing <hwansing@mailbox.org>
Closes: 963573
Changes:
 partman-target (118) unstable; urgency=medium
 .
   * Team upload
 .
   [ Chris Hofstaedtler ]
   * Add a hint to the new fstab about using "systemctl daemon-reload"
     after changing /etc/fstab. Closes: #963573
 .
   [ Updated translations ]
   * Dutch (nl.po) by Frans Spiesschaert
Checksums-Sha1:
 882e2af2f8b3f94212cda07ad87e6314b9207f6b 1743 partman-target_118.dsc
 9af3bd04bb795fcb0fdb3b5a3eec8c50afb739fd 126948 partman-target_118.tar.xz
 503dd73d64c358e019d2d4b8af3d6af050e79c45 5534 partman-target_118_amd64.buildinfo
Checksums-Sha256:
 dced2bc1ac2592d6a00fb329865dc429e0c68a3ddf6d4d2efb1023d794398581 1743 partman-target_118.dsc
 215751230bc5faba3718bb6de2aa2b6844051aa6fc76ea44633cbaba36018915 126948 partman-target_118.tar.xz
 4b8b695b733c2fcf96e65c93175fe01d0f346b3056e5e952fb89ed4c833d0023 5534 partman-target_118_amd64.buildinfo
Files:
 edaba9743d58d5f8715dbed397acc587 1743 debian-installer standard partman-target_118.dsc
 6341bb47c1bcb4d294e94b03d5700d3e 126948 debian-installer standard partman-target_118.tar.xz
 515b6af1b305be49f56905ca9be62f18 5534 debian-installer standard partman-target_118_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEESWrG6BRCSzSFCDUpWfGHyhVusHYFAl8K848VHGh3YW5zaW5n
QG1haWxib3gub3JnAAoJEFnxh8oVbrB22N4P/RwQfkUBjVJbpvjLbHdfxkCSTJSq
b9VnHd52PQmZnu2WexrSVp8+BSaW1FAPYOr2SQ7VuCvoufzWPuuKwy2BRNLk7Opw
+lIQHrPdFBKMnrsUbAtRdUDnjM632T6/osGXgtSIV69iKDTS88DDbth3iotOB3xi
jcjgiRHa+FMIlOQ+9NEGsRCVUbuJmzn3ejJYLIhFWsw2Xr/NpD6q+BQoy7Uimnuz
c1yLVlnRk4CzDC3uozDWKguI2XQNLXfsXO6e0phscHHmUozc0bs91fY9chngQ2O+
1X2TBJnZEpgnPjAuHC1T29Lj7A2zNdbtLN/1gqyI3f5nzktQcr5RM68bHN/TfrOL
ajbm5xfYfDfpGQ/ImYvkHQBZqKGKLVamR4vFGvU1eG3SLvoTYObV65uy4YOaeSQR
fwjfDSd84keRCdG0Mkt0CHBQVhAxGUE5WDDX9Di3QSmgnBQ33ODx5TEm/qc86pVO
h+oHEpfNTAP6ZGxZUAREYKp39J2mz3KaT0GuK5mVFoF93w42ci7gUYeDK183OX76
SAQvHSOITrxBZCcFstruJQY5pJlbVYX4iIQeQZsVRLjhrbGKFcECTUjzBiUxTE8e
3Xl++zmDLMT0ZBdavnxnd4uZuRcDbNsbqKB2GJAiKc9mF+IJLfN5sGCuiD1//9xx
p/zjB+BNvjgC65jU
=UDS5
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: