Your message dated Fri, 24 Aug 2018 00:04:12 +0000
with message-id <e1fszag-0002i8...@fasolo.debian.org>
and subject line Bug#906767: fixed in dphys-swapfile 20100506-5
has caused the Debian Bug report #906767,
regarding dphys-swapfile: "setup" subcommand failure under systemd
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 ow...@bugs.debian.org
immediately.)


-- 
906767: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906767
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dphys-swapfile
Version: 20100506-4

Hardware: Raspberry Pi 2.
I use Debian release "sid".

My KInfocenter shows:
KDE Plasma Verson:      5.13.2
KDE Frameworks Version: 5.47.0
Qt Version:             5.11.1
Kernel Version:         4.17.0-2-armmp
OS Type:                32-bit

# grep -i swap /boot/config-4.17.0-2-armmp
CONFIG_SWAP=y
CONFIG_MEMCG_SWAP=y
# CONFIG_MEMCG_SWAP_ENABLED is not set
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_FRONTSWAP=y
CONFIG_ZSWAP=y
CONFIG_MTD_SWAP=m
CONFIG_NFS_SWAP=y
CONFIG_SUNRPC_SWAP=y
CONFIG_RING_BUFFER_ALLOW_SWAP=y
# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set

I made a guide for 32-bit and 64-bit for Debian for Raspberry Pi here:
https://github.com/evasjo/DebianSbcRaspberry

My 32-bit (armhf) worked with dphys-swapfile in version 20100506-3.
My 64-bit (arm64) works with dphys-swapfile in version 20100506-3.

Swap is not working after upgrde of my 32-bit (armhf) dphys-swapfile
to version 20100506-4.

Test1:
# journalctl
Aug 19 15:24:35 irena systemd[1]: Starting dphys-swapfile - set up,
mount/unmount, and delete a swap file...
Aug 19 15:24:36 irena dphys-swapfile[403]: want /var/swap=1024MByte
Aug 19 15:24:36 irena systemd[1]: dphys-swapfile.service: Main process
exited, code=exited, status=1/FAILURE
Aug 19 15:24:36 irena systemd[1]: dphys-swapfile.service: Failed with
result 'exit-code'.
Aug 19 15:24:36 irena systemd[1]: Failed to start dphys-swapfile - set
up, mount/unmount, and delete a swap file.
# systemctl status swap.target
��� swap.target - Swap
   Loaded: loaded (/lib/systemd/system/swap.target; static; vendor
preset: enabled)
   Active: active since Fri 2018-06-22 11:11:50 UTC; 1 months 27 days ago
     Docs: man:systemd.special(7)
Warning: Journal has been rotated since unit was started. Log output
is incomplete or unavailable.
# systemctl status dphys-swapfile.service
��� dphys-swapfile.service - dphys-swapfile - set up, mount/unmount,
and delete a swap file
   Loaded: loaded (/lib/systemd/system/dphys-swapfile.service;
enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-08-19 15:24:36
UTC; 1h 45min ago
     Docs: man:dphys-swapfile(8)
  Process: 403 ExecStart=/sbin/dphys-swapfile setup (code=exited,
status=1/FAILURE)
 Main PID: 403 (code=exited, status=1/FAILURE)
Aug 19 15:24:35 irena systemd[1]: Starting dphys-swapfile - set up,
mount/unmount, and delete a swap file...
Aug 19 15:24:36 irena dphys-swapfile[403]: want /var/swap=1024MByte
Aug 19 15:24:36 irena systemd[1]: dphys-swapfile.service: Main process
exited, code=exited, status=1/FAILURE
Aug 19 15:24:36 irena systemd[1]: dphys-swapfile.service: Failed with
result 'exit-code'.
Aug 19 15:24:36 irena systemd[1]: Failed to start dphys-swapfile - set
up, mount/unmount, and delete a swap file.
# cat /proc/swaps
Filename                                Type            Size    Used    Priority
#
Swap is not working!

Test2:
# systemctl start dphys-swapfile.service
Job for dphys-swapfile.service failed because the control process
exited with error code.
See "systemctl status dphys-swapfile.service" and "journalctl -xe" for details.
# systemctl status dphys-swapfile.service   // Same error message as above
# cat /proc/swaps
Filename                                Type            Size    Used    Priority
#
Swap is not working!    // I tried also to erase row
"ExecStart=/sbin/dphys-swapfile swapon" in dphys-swapfile.service, but
same error message as above.

Test3:
# /sbin/dphys-swapfile setup
want /var/swap=1024MByte
# /sbin/dphys-swapfile swapon
# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/var/swap                               file            1048572 256     -2
#
Swap works!     // Swap works even without command "/sbin/dphys-swapfile setup"

Test4:
Solution:
# nano -w /lib/systemd/system/dphys-swapfile.service
ExecStart=-/sbin/dphys-swapfile setup    // Old:
ExecStart=/sbin/dphys-swapfile setup
Restart computer!
Swap works!

I do not know why "ExecStart=/sbin/dphys-swapfile setup" is not
working in SystemD for me.

// Evald

--- End Message ---
--- Begin Message ---
Source: dphys-swapfile
Source-Version: 20100506-5

We believe that the bug you reported is fixed in the latest version of
dphys-swapfile, 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 906...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Axel Beckert <a...@debian.org> (supplier of updated dphys-swapfile 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Thu, 23 Aug 2018 23:29:41 +0200
Source: dphys-swapfile
Binary: dphys-swapfile
Architecture: source all
Version: 20100506-5
Distribution: unstable
Urgency: high
Maintainer: Axel Beckert <a...@debian.org>
Changed-By: Axel Beckert <a...@debian.org>
Description:
 dphys-swapfile - Autogenerate and use a swap file
Closes: 906767
Changes:
 dphys-swapfile (20100506-5) unstable; urgency=high
 .
   * Add patch to fix the setup subcommand exiting prematurely with more
     recent dc versions. (Closes: #906767, LP: #1788681) Also update
     check-diskspace-first.patch which uses the same syntax. Thanks to
     eHenry Berg for the initial bug report, Davide Prina for additional
     debugging help, and Wladimir Mutel for finding the actual culprit.
Checksums-Sha1:
 7099ef9cf59f624e9005ee7eb9c2b041c8d14ed3 1970 dphys-swapfile_20100506-5.dsc
 52a764603defa923d7dca6e4895fec414e76730b 8844 
dphys-swapfile_20100506-5.debian.tar.xz
 d961d6bbbd43f31c32de9526c5a3f5e6aec54647 21340 
dphys-swapfile_20100506-5_all.deb
 d025b28d922ebf64ac74c05be816492102c7ba77 5517 
dphys-swapfile_20100506-5_amd64.buildinfo
Checksums-Sha256:
 8201f2c7e1d7cab807153d0cb74148d54abfda1171e4e9a9461b8a8526e7605f 1970 
dphys-swapfile_20100506-5.dsc
 452f049e6198659a2b22a042b88e8a89c0c1cc7bb7edec251dec71d684b0e2d0 8844 
dphys-swapfile_20100506-5.debian.tar.xz
 4ca6326136642b3b3fdbcc6b4e884bc78f83c7f3c1bedf445535f3c4d3af35e7 21340 
dphys-swapfile_20100506-5_all.deb
 7aa4c27154a094011da3abe30bab163de635af5f591b63ca06df12fa453d09ee 5517 
dphys-swapfile_20100506-5_amd64.buildinfo
Files:
 3a641750e713a2487dfa64c3f94cdeca 1970 admin optional 
dphys-swapfile_20100506-5.dsc
 4995e583dafba57fe6913cc99dfc9443 8844 admin optional 
dphys-swapfile_20100506-5.debian.tar.xz
 d36d546d1386fedfca8185cee3589c6f 21340 admin optional 
dphys-swapfile_20100506-5_all.deb
 f74a450bdc3e5c4c0bfdd309af7b6c5e 5517 admin optional 
dphys-swapfile_20100506-5_amd64.buildinfo

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

iQIzBAEBCgAdFiEERoyJeTtCmBnp12Ema+Zjx1o1yXUFAlt/KhkACgkQa+Zjx1o1
yXX1yxAAkDoGaWKtTWKsLcDZtnv1ymz4OllDkSZEf/rmobdVmhX1D7f+UOt7/jug
Vm9ymYMmlqVl8NA8wPQeND17JFw91HTWRL0Zexwz4gv8446ZSVQTX2p4vfxzI48p
JzlzOwtfqxUZN4wSdtA+OFXFr49AprRGbpmedZfoZZVS5jOJJQS0XY2szpBPrsF8
xNeevae22Ucp7tMuoQOxkU55Epobw9dmu0Z5vjvCurHj4Qex3Wxn7m9c4/Tkkpel
qrpl3tV9qCfgbrkC22ACmaJin2dRVcQIMvUTlB24tjDa6dVfKZ05TWGFCjUcTU60
E58gQy5twgAj17DPZNQnD1aF+Yyh9WjwLGCXNdqojYm8JZZ63JKc6cBJGEpWWA3R
BuTE8zNFsEfv4Gd5B4jT5sZHGyVPR+kYbLcCcckgQ6vsRJSLCn3fAKBskTKQvZsQ
PG27Bsup/aiDNJrpLNqiz9T9TiuIKL0mT6aT5QE8TFgOd2j+GYqGh9qg15aAoZs8
pkGZ2i5cg5eynS3UVJGvjwTO32D9cIkHdKXjQAdrSVLEJm4ui2eY7w5PW+sYzyh8
DVu/5qizAGdHQb3YCblxb9ZCWu3uXb+snf8mGVfTlYzNlwNhptNDP7QH4h7in4p4
BtcxR1Rn3huao/682d1bd5OCEgAA0wAxa79/tK2cb0qmnTpKri0=
=8sRz
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to