mythtv-backend needs to check for 'mythtv' home directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: mythtv
Ubuntu release: 9.04
Package: mythtv-
Error text in /var/log/
* MythTV home directory, /home/mythtv does not exist.
invoke-rc.d: initscript mythtv-backend, action "start" failed.
dpkg: error processing mythtv-backend (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mythtv-
mythtv-
Package mythtv-backend is not configured yet.
Preconditions: user mythtv and group mythtv already present in /etc/passwd and /etc/group (for nfs mappings), however there was no home directory for user mythtv.
After adding a home dir in /home/mythtv, the problem disappeared.
Possible solution:
on installing, check uid and gid but also check if homedir for mythtv exists and is writable
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelMo
Package: mythtv-backend 0.21.0+
SourcePackage: mythtv
Title: package mythtv-backend 0.21.0+
Uname: Linux 2.6.28-11-generic i686
summary: |
- package mythtv-backend 0.21.0+fixes19961-0ubuntu8 failed to - install/upgrade: subprocess post-installation script returned error exit - status 1 + mythtv-backend needs to check for 'mythtv' home directory |
Changed in mythtv (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
This is fixed in the current 9.10 package actually by this snippet in the init script.
if [ ! -d $USER_HOME ]; then
mkdir -p $USER_HOME
fi
#create a symbolic link for mysql.txt so it can't be overwritten .mythtv/ mysql.txt ]; then mysql.txt $USER_HOME/ .mythtv/ mysql.txt
mkdir -p $USER_HOME/.mythtv
chown -R $USER $USER_HOME/.mythtv
if [ ! -e $USER_HOME/
ln -s /etc/mythtv/
fi