me.fier.chroot/scripts/umount/50_main.py

11 lines
157 B
Python
Raw Normal View History

2023-07-05 02:30:47 +00:00
import os
mounts = [
"proc",
"sys",
"dev",
os.path.join("dev","pts")
]
for mount in reversed(mounts):
_g["umount"](os.path.join(_chroot["dir"],mount))