]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Map current user to root in subuid user namespace 3156/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 31 Oct 2024 10:58:28 +0000 (11:58 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 31 Oct 2024 18:59:52 +0000 (19:59 +0100)
commita688639e5623c37211e3e7ca1407c9c8eeb065c2
tree3511736e123bb6e3dcd397a08a86835cdef68936
parentb311778f31cd7492e142c91eeaa22e7067114b08
Map current user to root in subuid user namespace

By mapping the current user to root in the subuid user namespace,
we don't have to change the ownership of all the files in the directory
tree to root in the subuid uid/gid range. This means that on btrfs
filesystems, we can do a subvolume snapshot instead of an expensive
full tree recursion to copy each file individually.
mkosi/qemu.py
mkosi/user.py