Welcome to the Linux Foundation Forum!

Lab 2.1 Freezer not exists (Solution)

devdorrejo
devdorrejo Posts: 24
edited December 2021 in LFS253 Class Forum

Hello, if someone are using a distro where the freezer directory not exists, you can create it this way:

sudo mkdir /sys/fs/cgroup/freezer
sudo mount -t cgroup -ofreezer freezer /sys/fs/cgroup/freezer

That way no matter the distro you are using you can complete this Lab.

Comments

  • Thanks, this worked perfectly.

  • degido
    degido Posts: 1

    Thanks!!!

  • I know this is an older post and marked resolved, but I was wondering how/if it was intended to be persistent across restarts? The lab seems to imply that /sys/fs/cgroup/freezer/ exists on installation.

    Is there a deb package that is missing and should be there?

  • chrispokorni
    chrispokorni Posts: 1,964

    Hi @robertfreemanday,

    You are correct, on the Ubuntu 20.04 LTS server the .../cgroup/freezer/ directory exists. That is the recommended OS release as presented in lab exercise 1.1 of the lab guide.

    However, as the original post of this discussion suggests, that directory may not be available on all releases and/or distributions. For those scenarios, the suggested workaround may be applied.

    Regards,
    -Chris

  • Thanks for your reply, @chrispokorni !! I know this was an aged thread, but still topical.

    I apologize that I wasn't clear. Is there an Ubuntu package from other versions that would need applied to persist that filesystem setup? The work around does not persist between reboots for my version (22.04.x).

    Thanks!

  • chrispokorni
    chrispokorni Posts: 1,964

    Hi @robertfreemanday,

    On Ubuntu 22.04 the cgroups behave differently, and the lab produces different results that are inconsistent with the ones from Ubuntu 20.04 (the recommended release/version for this course).

    Regards,
    -Chris

Categories

Upcoming Training