diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-11-19 16:35:39 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-11-19 16:35:39 -0800 |
commit | a41d3f6188246cb218c17fac9ba5d2bb6d043f9f (patch) | |
tree | ec4d28ec426111f1e3a1e65bcb504b86b88a9e9b /debian/vyatta-cfg-system.postinst.in | |
parent | 76b9de5da3e466ca8055af75b3a3acde8f2110be (diff) | |
download | vyatta-cfg-system-a41d3f6188246cb218c17fac9ba5d2bb6d043f9f.tar.gz vyatta-cfg-system-a41d3f6188246cb218c17fac9ba5d2bb6d043f9f.zip |
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!
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 6 |
1 files changed, 6 insertions, 0 deletions
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;; |