X-Git-Url: https://git.ralfj.de/schsh.git/blobdiff_plain/807db80a3e637f5a8e7083a79e174827ae2339d1..6dfe0e9d89af3b03e9d199fd3ae086ab16aae77a:/makeschsh?ds=sidebyside diff --git a/makeschsh b/makeschsh index 0dbb0aa..61b37f6 100755 --- a/makeschsh +++ b/makeschsh @@ -23,15 +23,15 @@ def setup(name): userpw = pwd.getpwnam(name) # schroot configuration - with open("/etc/schroot/chroot.d/user-"+name, "w") as f: - print >>f, """[user-{0}] + with open("/etc/schroot/chroot.d/schsh-"+name, "w") as f: + print >>f, """[schsh-{0}] type=directory directory={1} users={0} -profile=user -setup.fstab=user/user-{0}.fstab +profile=schsh +setup.fstab=schsh/{0}.fstab """.format(name, chroot) - with open("/etc/schroot/user/user-"+name+".fstab", "w") as f: + with open("/etc/schroot/schsh/"+name+".fstab", "w") as f: print >>f, """# /bin \t/bin \tnone \trw,bind \t0 \t0 /lib \t/lib \tnone \trw,bind \t0 \t0