reboot reboots system when --poweroff is passed

Bug #1995048 reported by Daniel Tang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The feature of passing "--poweroff" to the reboot command to "Power-off the machine, regardless of which one of the three commands is invoked." is broken. Either that or the man page is. This doesn't matter much to me anymore now that I found out that you can also pass "-f" to "poweroff" when debugging, but it confused me a lot at first.

$ lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04

$ apt-cache policy systemd-sysv
systemd-sysv:
  Installed: 249.11-0ubuntu3.6
  Candidate: 249.11-0ubuntu3.6
  Version table:
 *** 249.11-0ubuntu3.6 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     249.11-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

# Expected behaviour

The system to power off.

# Actual behaviour

The system reboots.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-09-19 (39 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
Lsusb:
 Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t:
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/12p, 12M
     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
MachineType: innotek GmbH VirtualBox
Package: systemd 249.11-0ubuntu3.6
PackageArchitecture: amd64
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-52-generic root=UUID=11e9994e-8b05-42e7-949a-2f635b160285 ro text debug
ProcVersionSignature: Ubuntu 5.15.0-52.58-generic 5.15.60
Tags: jammy
Uname: Linux 5.15.0-52-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:sku:
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : CurrentDmesg.txt

apport information

tags: added: apport-collected jammy
description: updated
Revision history for this message
Daniel Tang (daniel-z-tg) wrote : Dependencies.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : Lspci.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : Lspci-vt.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : Lsusb-v.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcModules.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : SystemdDelta.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : UdevDb.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : acpidump.txt

apport information

Revision history for this message
Nick Rosbrook (enr0n) wrote :

Looking at the upstream code, the --poweroff option is intentionally ignored when reboot is invoked [1]. The man page should be fixed to document this exception.

[1] https://github.com/systemd/systemd/commit/a042efad57741e90ee78b69c57310858295bf3fc

Changed in systemd (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Nick Rosbrook (enr0n) wrote :
Changed in systemd (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Nick Rosbrook (enr0n) wrote :

This patch has not been brought into the Ubuntu packaging yet, so the status should remained "Triaged" for now.

Changed in systemd (Ubuntu):
status: Fix Committed → Triaged
Revision history for this message
Nick Rosbrook (enr0n) wrote :

The man page should be up-to-date for Lunar and newer.

Changed in systemd (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.