Comment 13 for bug 989354

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 989354] Re: cgroup-lite and separated /usr

Quoting zoolook (<email address hidden>):
> Hello Serge,
>
> [quote]
> start on mounted MOUNTPOINT=/sys and mounted MOUNTPOINT=/proc
> [/quote]
>
> A few months ago, I got a similar problem at work. I needed to make sure
> two filesystems were mounted, and I came to a solution like the one
> you're suggesting. And nope. It didn't work. cgroup-lite is in an
> endless loop right now :-)
>
> So I tried to put some echoes on the job. And the problem is.... (are
> actually) tail and awk
>
> awk is installed in /usr/bin/awk (which is a symlink to

Odd! I swear I had gone through the programs used in cgroups-mount
and found them all under /bin, but you're right.

> /etc/alternatives/akw, which is a symlink to /usr/bin/mawk). The same
> for tail.
>
> The for loop (for c in `tail -n +2 /proc/cgroups | awk....) at the end
> of /bin/cgroup-mount is never executed.
>
> I did a simple "cp /usr/bin/awk /bin/" and "cp /usr/bin/tail /bin/" and
> got cgroup-lite working.

I'll have to switch to using something other than awk.

> Now I'm wondering two things:
>
> 1) how did you get this to work with a separated /usr

Timing. /usr simply came up fast enough that awk was avaiable when I
needed it.

> 2) what others things are broken when /usr is on a separated partition.