ruyrybeyro / chrootvpn

Checkpoint R80+ VPN client chroot wrapper
Apache License 2.0
135 stars 21 forks source link

Issues with creating chroot on NixOS #36

Open qck4fun opened 2 months ago

qck4fun commented 2 months ago

Hi, I'm trying to use your script, but I'm encountering issues on the way. First I had to change version of deboostrap, because version 1.0.128 is no longer present in the repository -> using 1.0.137 instead. I'm running on fresh installation of NixOS 23.11

But no matter what version of NixOS or debootstrap I use, I still encounter following issue when creating chroot:

...
I: Extracting zlib1g...
W: Failure trying to run: chroot "/opt/chroot" /bin/true
W: See /opt/chroot/debootstrap/debootstrap.log for details
chroot /opt/chroot unsucessful creation
InstallChroot->createChroot: run sudo rm -rf /opt/chroot and do it again

deboostrap.log looks like:

...
2024-09-16 18:15:02 URL:http://deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.13.dfsg-1_i386.deb [82644/82644] -> "/opt/chroot//var/cache/apt/archives/partial/zlib1g_1%3a1.2.13.dfsg-1_i386.deb" [1]
/usr/share/debootstrap/functions: line 1142: chroot: command not found
/usr/share/debootstrap/functions: line 1148: grep: command not found
/usr/share/debootstrap/functions: line 1148: head: command not found
/usr/share/debootstrap/functions: line 1148: sed: command not found
/usr/share/debootstrap/functions: line 1148: cut: command not found

I'm not sure what I'm doing wrong..

Any advice?

Thank you!! :)

qck4fun commented 2 days ago

@ruyrybeyro have you by any chance had a moment to take a look at this?