Trousers cannot start when more than one file matches /dev/tpm*

Bug #1826887 reported by Lucy Llewellyn
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
trousers (Debian)
Fix Released
Unknown
trousers (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The init script in /etc/init.d/trousers includes the following test on line 32:

if [ ! -e /dev/tpm* ]

This will fail whenever the wildcard expansion of /dev/tpm* returns more than one result with a message similar to `/etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator`.

On my Surface book I have two files which match /dev/tpm0 and /dev/tpmrm0.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: trousers 0.3.14+fixed1-1build1
Uname: Linux 5.0.9-surface-linux-surface x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 29 15:17:49 2019
InstallationDate: Installed on 2019-04-29 (0 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: trousers
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.tcsd.conf: [inaccessible: [Errno 13] Permission denied: '/etc/tcsd.conf']
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2019-04-29 (0 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Package: trousers 0.3.14+fixed1-1build1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
Tags: disco
Uname: Linux 5.0.9-surface-linux-surface x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

Revision history for this message
Lucy Llewellyn (lucyllewy) wrote :
tags: added: apport-collected
description: updated
Revision history for this message
Lucy Llewellyn (lucyllewy) wrote : Dependencies.txt

apport information

Revision history for this message
Lucy Llewellyn (lucyllewy) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in trousers (Ubuntu):
status: New → Confirmed
Revision history for this message
Anthony Wong (anthonywong) wrote :

Still happens in Focal.

Changed in trousers (Debian):
status: Unknown → New
Revision history for this message
Janåke Rönnblom (jan-ake) wrote :

Still there in focal.

Revision history for this message
Víctor Gonzalo (vic.thor) wrote :

Still failing.

Changed in trousers (Debian):
status: New → 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.