Comment 1 for bug 326702

Perhaps a check to see if $USER_HOME exists first is better. If it doesn't
exist, then abort the init script. Worse things can happen if that home
directory isn't around I think.

On Sat, Feb 7, 2009 at 16:24, Will Uther <<email address hidden>
> wrote:

> Public bug reported:
>
> Binary package hint: mythtv-backend
>
> I've been having some difficulty with the filesystem I'm using for
> /home. This means that that filesystem has occasionally failed to
> mount. This is annoying, but it interacts with /etc/init.d/mythtv-
> backend in a bad way too...
>
> If /home doesn't mount, the mythtv-backend startup script runs anyway.
> And that startup script, on line 51, does this:
>
> mkdir -p $USER_HOME/.mythtv
>
> which, because of the -p option, creates files in /home even if
> $USER_HOME doesn't exist (because the mount failed).
>
> This causes all future attempts to mount /home to fail! (until the
> newly created files are removed.)
>
> Might I suggest that the '-p' option here be removed. If $USER_HOME
> exists, this will still create the .mythtv directory, but if /home isn't
> mounted then nothing bogus will be created.
>
> This is on jaunty with mythtv-backend version 0.21.0+fixes19556-0ubuntu6
>
> ** Affects: mythtv (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> Binary package hint: mythtv-backend
>
> I've been having some difficulty with the filesystem I'm using for
> /home. This means that that filesystem has occasionally failed to
> mount. This is annoying, but it interacts with /etc/init.d/mythtv-
> backend in a bad way too...
>
> If /home doesn't mount, the mythtv-backend startup script runs anyway.
> And that startup script, on line 51, does this:
>
> mkdir -p $USER_HOME/.mythtv
>
> which, because of the -p option, creates files in /home even if
> $USER_HOME doesn't exist (because the mount failed).
>
> This causes all future attempts to mount /home to fail! (until the
> newly created files are removed.)
>
> Might I suggest that the '-p' option here be removed. If $USER_HOME
> exists, this will still create the .mythtv directory, but if /home isn't
> mounted then nothing bogus will be created.
> +
> + This is on jaunty with mythtv-backend version 0.21.0+fixes19556-0ubuntu6
>
> --
> MythTV creates files in /home even if mount /home fails
> https://bugs.launchpad.net/bugs/326702
> You received this bug notification because you are a member of MythTV
> Ubuntu Maintainers, which is subscribed to mythtv in ubuntu.
>

--
Mario Limonciello
<email address hidden>