Code: Select all
if [ $(cat /etc/fstab | grep swap | awk '{print $1}') == $(sudo blkid | grep swap | awk '{print $2}' | tr -d '"') ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Code: Select all
if [ $(cat /etc/fstab | grep swap | awk '{print $1}') == $(sudo blkid | grep swap | awk '{print $2}' | tr -d '"') ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Indeed. Two identical commands should never give different output.Dai_trying wrote:It does beg the question of how it could have given the message "Swap UUID is different to fstab" to @peer? strange that....
Code: Select all
systemd-analyze blame
journalctl -b -p 3
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# 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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=d217e984-5a4e-4019-9335-8dca4956514b / ext4 noatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=fd34d9a9-e492-4f05-827b-a32dca238490 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# 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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=8fe14111-fb44-461b-b458-626c5737d8c2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=f87f0147-03ee-4960-9d2a-2d76b0828b67 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
Code: Select all
root@JohnBoy:/home/john# blkid | grep swap| awk '{print $2}'|sed s/'"'//g
UUID=f87f0147-03ee-4960-9d2a-2d76b0828b67
UUID=fd34d9a9-e492-4f05-827b-a32dca238490
Code: Select all
if [ "$(cat /etc/fstab | grep swap | awk '{print $1}')" == "$(sudo blkid | grep swap | awk '{print $2}' | tr -d '"')" ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Code: Select all
root@JohnBoy:/home/john# if [ "$(cat /etc/fstab | grep swap | awk '{print $1}')" == "$(sudo blkid | grep swap | awk '{print $2}' | tr -d '"')" ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Swap UUID is different to fstab
Code: Select all
Sep 22 10:45:46 JohnBoy systemd[1]: Stopping D-Bus System Message Bus...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopping Deferred execution scheduler...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopping Make remote CUPS printers available locally...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped target Timers.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Sep 22 10:45:46 JohnBoy systemd[2299]: Starting Exit the Session...
Sep 22 10:45:46 JohnBoy systemd[2299]: Stopped target Default.
Sep 22 10:45:46 JohnBoy systemd[2299]: Stopped target Basic System.
Sep 22 10:45:46 JohnBoy systemd[2299]: Stopped target Paths.
Sep 22 10:45:46 JohnBoy systemd[2299]: Stopped target Sockets.
Sep 22 10:45:46 JohnBoy systemd[2299]: Stopped target Timers.
Sep 22 10:45:46 JohnBoy systemd[1]: Starting Store Sound Card State...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopping Regular background program processing daemon...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopping Daemon for power management...
Sep 22 10:45:46 JohnBoy systemd[2299]: Received SIGRTMIN+24 from PID 4295 (kill).
Sep 22 10:45:46 JohnBoy systemd[1]: Unmounted /run/user/1000/gvfs.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Regular background program processing daemon.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Accounts Service.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Deferred execution scheduler.
Sep 22 10:45:46 JohnBoy systemd[2194]: Stopped target Default.
Sep 22 10:45:46 JohnBoy systemd[2194]: Stopped target Basic System.
Sep 22 10:45:46 JohnBoy systemd[2194]: Stopped target Timers.
Sep 22 10:45:46 JohnBoy systemd[2194]: Stopped target Paths.
Sep 22 10:45:46 JohnBoy systemd[2194]: Stopped target Sockets.
Sep 22 10:45:46 JohnBoy systemd[2194]: Reached target Shutdown.
Sep 22 10:45:46 JohnBoy systemd[2194]: Starting Exit the Session...
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Getty on tty1.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Modem Manager.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Network Manager.
Sep 22 10:45:46 JohnBoy systemd[2194]: Received SIGRTMIN+24 from PID 4301 (kill).
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped System Logging Service.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Authenticate and Authorize Users to Run Privileged Tasks.
Sep 22 10:45:46 JohnBoy systemd-logind[1842]: Failed to abandon session scope: Connection reset by peer
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Session c1 of user lightdm.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped User Manager for UID 1000.
Sep 22 10:45:46 JohnBoy systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Make remote CUPS printers available locally.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Disk Manager.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Daemon for power management.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Bluetooth service.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped D-Bus System Message Bus.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped Network UPS Tools - power device monitor and shutdown controller.
Sep 22 10:45:46 JohnBoy systemd[1]: Started Store Sound Card State.
Sep 22 10:45:46 JohnBoy systemd[1]: Stopped User Manager for UID 118.
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
Sep 22 10:45:46 JohnBoy systemd[1]: Failed to propagate agent release message: Transport endpoint is not connected
That project is dead upstream and does not support systemd login sessions, try a different display manager. GDM is probably the best, or no DM at all.Job wrote:I use slim
I noted all you wrote but should a package/software forces a user to adapt to its behavior. I know the people who make these decisions know more than me.Head_on_a_Stick wrote:That project is dead upstream and does not support systemd login sessions, try a different display manager. GDM is probably the best, or no DM at all.Job wrote:I use slim
EDIT: pressing <ctrl>+<alt>+<delete> seven times in two seconds will force a reboot.
*shrugs* It is what it is.Job wrote:should a package/software forces a user to adapt to its behavior.
That absolutely does not always work. The fact is, I've found that occasionally under systemd it is just impossible to shutdown cleanly (with or without a dm). The problem will never get fixed if people pretend it doesn't exist.Head_on_a_Stick wrote: ...
EDIT: pressing <ctrl>+<alt>+<delete> seven times in two seconds will force a reboot.
Well, it works sometimesbw123 wrote:That absolutely does not always work.Head_on_a_Stick wrote: ...
EDIT: pressing <ctrl>+<alt>+<delete> seven times in two seconds will force a reboot.
Code: Select all
# ln -s /dev/null /etc/sysctl.d/50-coredump.conf
Who's pretending?bw123 wrote:The problem will never get fixed if people pretend it doesn't exist.