1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

improve linux chroot-related error message

Signed-off-by: Samuli Thomasson <samuli.thomasson@pm.me>
This commit is contained in:
Samuli Thomasson 2025-06-14 02:05:36 +02:00
parent c9651a0cbd
commit b01dcf8985
No known key found for this signature in database
GPG key ID: 6B8903D2645A5B48

View file

@ -336,7 +336,7 @@ struct ChrootLinuxDerivationBuilder : LinuxDerivationBuilder
printMsg(lvlChatty, "setting up chroot environment in '%1%'", chrootParentDir);
if (mkdir(chrootParentDir.c_str(), 0700) == -1)
throw SysError("cannot create '%s'", chrootRootDir);
throw SysError("cannot create '%s'", chrootParentDir);
chrootRootDir = chrootParentDir + "/root";