Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed: /opt/pot/jails/base-11_1/custom/etc/crontab: No such file or directory #35

Closed
0mp opened this issue May 18, 2018 · 4 comments
Closed

Comments

@0mp
Copy link
Contributor

0mp commented May 18, 2018

Hi,

I'm trying out pot for the first time and I got the following error:

$ sudo pkg install pot
$ sudo pkg init
$ sudo pot create-base -r 11.1
===>  Create a base with release 11.1
/tmp/11.1_base.txz                            100% of   99 MB  741 kBps 02m18s
===>  Create the zfs datasets for base release zroot/pot/bases/11.1
sed: /opt/pot/jails/base-11_1/custom/etc/crontab: No such file or directory
sed: /opt/pot/jails/base-11_1/custom/etc/crontab: No such file or directory

Then I tried to run create-base again:

$ sudo pot create-base -r 11.1
===>  Create a base with release 11.1
===>  Create the zfs datasets for base release zroot/pot/bases/11.1
./sbin/init: Can't restore time
./lib/libcrypt.so.5: Can't restore time
./lib/libthr.so.3: Can't restore time
./lib/libc.so.7: Can't restore time
./usr/lib/librt.so.1: Can't restore time
./usr/bin/crontab: Can't restore time
./usr/bin/su: Can't restore time
./usr/bin/chpass: Can't restore time
./usr/bin/passwd: Can't restore time
./usr/bin/opieinfo: Can't restore time
./usr/bin/login: Can't restore time
./usr/bin/opiepasswd: Can't restore time
./libexec/ld-elf.so.1: Can't restore time
tar: Error exit delayed from previous errors.
cp: cannot overwrite directory opt/custom/etc/unbound with non-directory etc/unbound
cp: symlink: ../usr/sbin/rmt: File exists
cp: utimensat: opt/custom/var/empty: Operation not permitted
cp: symlink: ../usr/sbin/rmt: File exists
cp: symlink: ../var/unbound: File exists
cp: cannot overwrite directory opt/custom/var/db/etcupdate/current/usr/share/man/en.ISO8859-15 with non-directory var/db/etcupdate/current/usr/share/man/en.ISO8859-15
cp: symlink: ../man4: File exists
cp: symlink: ../man9: File exists
cp: symlink: ../man3: File exists
cp: symlink: ../man7: File exists
cp: symlink: ../man2: File exists
cp: symlink: ../man8: File exists
cp: symlink: ../man5: File exists
cp: symlink: ../man1: File exists
cp: symlink: ../man6: File exists
cp: symlink: ../man6: File exists
cp: symlink: ../man1: File exists
cp: symlink: ../man5: File exists
cp: symlink: ../man8: File exists
cp: symlink: ../man2: File exists
cp: symlink: ../man7: File exists
cp: symlink: ../man3: File exists
cp: symlink: ../man9: File exists
cp: symlink: ../man4: File exists
cp: symlink: C: File exists
cp: symlink: C: File exists
cp: cannot overwrite directory opt/custom/var/db/etcupdate/current/usr/share/openssl/man/en.ISO8859-15 with non-directory var/db/etcupdate/current/usr/share/openssl/man/en.ISO8859-15
cp: symlink: ../man3: File exists
cp: symlink: ../man1: File exists
cp: symlink: usr/src/sys: File exists

sudo pot create -p shield -b 11.1 worked just fine, however, and now I'm in jail's shell.


Details:

  • FreeBSD 12.0-CURRENT r333659 amd64
  • pot: 0.5.5
  • ZFS
@pizzamig
Copy link
Collaborator

The first error is already fixed in trunk, but I should improve the output.
The second shouldn't happen, because the base 11.1 is already there, but the detection seems broken.
I can reproduce it, so I'll fix it ASAP.

@pizzamig
Copy link
Collaborator

So, apparently, when I reworked create-base I've already fixed it. I'll make a release soon, to get those fixes out. Sorry for the confusion

@0mp
Copy link
Contributor Author

0mp commented May 18, 2018

Cool! I can't wait.

@0mp
Copy link
Contributor Author

0mp commented Sep 27, 2018

It looks like the bug is gone. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants