mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-12 12:30:35 +00:00
22 lines
460 B
Bash
22 lines
460 B
Bash
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -n "$2" ]; then
|
|
systemctl daemon-reexec || true
|
|
|
|
if dpkg --compare-versions "$2" lt "11-2"; then
|
|
if [ -e /proc/mounts ]; then
|
|
mounts=$(awk '/ \/cgroup/ {print $2}' < /proc/mounts | sort -r)
|
|
for m in $mounts; do
|
|
umount "$m" || true;
|
|
done
|
|
fi
|
|
if [ -d /cgroup ]; then
|
|
rmdir --ignore-fail-on-non-empty /cgroup
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|