U6EHWR7YKTWFC3OLM42N22EP6WUNLFJD5O62JSVWWIF4AUY7FNXAC
ZSVCCJBXFX7BJ4EY4VE742ZTAJZZWUXYZHR2TGUHF4HGK6II2U3AC
WNFTZY3MQBNYY2V6XEI2DHZEZGRUMVWK23IN34YW3OISLSJHGFYQC
M5U5PAX7ACFUIJKG2CLQKLEFF76KYMGI7WRZXFLOBR5LYBDEWFFAC
HCY72TQRK2H7LRTEPPHDWTUVINPHZBGMTASY7FJRYS2WXCBRSMYQC
W2G433QU3JDG72JL6GYR6E5HMAHFP3OF2DLFB3O42245XTE6VGZQC
7AUC4NKIYIKUZMHNOVCCVGPDO3BO3D56XULZXTXRFBTPDG27J7DQC
AG72J7RH2V7GWYMGULESKCIK72FZ64EZKZO5EQQVSYTOCFGGJ3SAC
do_nix_make_gcroots=0
if [ "${nix_gcroots_action}" = delete ]; then
__nix_clean_gcroots
exit 0
elif [ "${nix_gcroots_action}" = print ]; then
__nix_print_gcroots
exit 0
elif [ "${nix_gcroots_action}" = recreate ]; then
__nix_clean_gcroots
do_nix_make_gcroots=1
elif [ "${nix_gcroots_action}" = create ]; then
do_nix_make_gcroots=1
fi
}
__nix_print_gcroots() {
echo "Printing existing GC roots"
find "${__nix_gcroot_dir}" -name "${__nix_gcroot_prefix}-*" -print | sed "s|${__nix_gcroot_dir}/||"
}
__nix_clean_gcroots() {
echo "Removing existing GC roots"
__nix_print_gcroots
find "${__nix_gcroot_dir}" -name "${__nix_gcroot_prefix}-*" -delete
- rm -f /nix/var/nix/gcroots/per-user/${USER}/nix-container-demo-*
- CLICOLOR_FORCE=1 ./demo-full.sh --auto --gcroots
- for f in $(ls -1dtr /nix/var/nix/gcroots/per-user/${USER}/nix-container-demo-*); do basename $f; done
- CLICOLOR_FORCE=1 ./demo-full.sh --auto --gcroots recreate