From a41d3f6188246cb218c17fac9ba5d2bb6d043f9f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 19 Nov 2009 16:35:39 -0800 Subject: Add user tss for udev See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412989 The udev scripts expect user tss, but it isn't there. For Vyatta, just create it; debian developers can't agree on proper fix! --- debian/vyatta-cfg-system.postinst.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian') diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 3951d376..fd1a160e 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -19,6 +19,12 @@ if [ -L /etc/rcS.d/S08hwclockfirst.sh -a -L /etc/rcS.d/S11hwclock.sh ]; then rm /etc/rcS.d/S11hwclock.sh fi +# Udev package asks for user 'tss' early in boot process. +# Want to avoid going out to remote services to look for this local user +if ! grep -q '^tss' /etc/passwd; then + adduser --system --group --shell /usr/sbin/nologin --home /var/lib/tpm tss +fi + case `grep '^RULES_FILE=' /lib/udev/write_net_rules` in *z25_persistent-net.rules* ) vyatta_net_rules=z24_vyatta-net.rules;; -- cgit v1.2.3