Sparsha | Hi I'm Sparsha. I recently joined. | 06:51 |
---|---|---|
abhishek_sharma | Hi All, I am Abhishek Sharma. from India. joined the list | 06:52 |
lkcl | ghostmansd: just running test_caller_bcd.py now (all of it), i notice you templated doing the 31 regs | 19:01 |
lkcl | any reason why 31, not 32? :) | 19:01 |
lkcl | ohh add gpr, gpr, gpr+1 | 19:02 |
lkcl | got it | 19:02 |
ghostmansd | Yep. I could've used 32, though, but it required wraparound, so I didn't bother | 19:03 |
mikolajw | lkcl: is that appending to /etc/fstab necessary in mk-deb-chroot? | 19:34 |
programmerjake | in my experience with schroot, it is unnecessary | 19:36 |
lkcl | m... oh he's gone :) | 19:43 |
mikolajw | File "<string>", line 1 | 19:47 |
mikolajw | import crypt; print crypt.crypt("1234","Fx") | 19:47 |
mikolajw | ^ | 19:47 |
mikolajw | SyntaxError: invalid syntax | 19:47 |
mikolajw | so it sees Python 2 instead of 3 | 19:47 |
mikolajw | I'll try Qemu instead for now | 19:50 |
lkcl | mikolajw, ah where's that? in one of the devscripts? moo? | 20:51 |
mikolajw | lkcl: mk-deb-chroot | 21:17 |
lkcl | but.. what the hell? python == /usr/bin/python2.7 as a symlink in buster | 21:31 |
mikolajw | eh, it's probably due to trying to run it on Arch Linux | 21:33 |
mikolajw | i'll try Qemu | 21:33 |
lkcl | yeah it works perfectly | 21:33 |
lkcl | ah yes if you run it outside of the chroot that would fail | 21:34 |
lkcl | i don't recommend qemu | 21:34 |
lkcl | you will end up having to install qemu inside qemu | 21:34 |
lkcl | fix it with using python3 explicitly instead | 21:34 |
lkcl | and put brackets round the print statement | 21:35 |
mikolajw | well, it's pretty likely there's more problems than this one | 21:36 |
lkcl | running it now | 21:37 |
lkcl | there really shouldn't be. | 21:37 |
lkcl | look closely at it: the rest of the commands are run *inside* the chroot | 21:38 |
lkcl | (which we know works) | 21:38 |
lkcl | then there's a cat > /etc/schroot/{chrootname}.conf | 21:38 |
mikolajw | uhh but that command is also in chroot | 21:38 |
lkcl | which if that breaks you've serious problems well beyond this | 21:39 |
lkcl | which is extremely weird, but i'm testing it now | 21:39 |
lkcl | python2.7 *has* to be installed inside the debootstrap chroot, it's the default | 21:40 |
lkcl | i need to check thta | 21:40 |
lkcl | this is pretty fundamental, we critically rely on these scripts, so i have to make sure it works | 21:43 |
mikolajw | don't get too alarmed, it's quite likely it's a problem on my side | 21:43 |
lkcl | E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/perl/perl_5.28.1-6+deb10u1_amd64.deb 400 Bad Request [IP: 199.232.174.132 80] | 21:45 |
lkcl | E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? | 21:45 |
lkcl | that's annoying | 21:45 |
mikolajw | I also get this, but after that Python error | 21:46 |
mikolajw | actually not this, but something similar | 21:46 |
mikolajw | a flurry of "Temporary failure resolving 'ftp.debian.org'" | 21:47 |
lkcl | ok then that's the cause of the failure | 21:47 |
lkcl | not the script, at all | 21:47 |
mikolajw | how to fix this? | 21:48 |
mikolajw | wget http://ftp.debian.org/debian/pool/main/p/perl/perl_5.28.1-6+deb10u1_amd64.deb appears to work | 21:49 |
lkcl | i'm going to change it to ftp.uk.debian.org | 21:49 |
lkcl | yes, but ftp.debian.org is actually a redirector | 21:49 |
lkcl | a DNS redirector "to your closest mirror" | 21:49 |
lkcl | which, clearly, isn't working reliably | 21:50 |
lkcl | so i'm going to change it to ftp.uk.debian.org which i know is run by my friend phil | 21:50 |
lkcl | mikolajw: git pull on dev-env-setup | 21:51 |
mikolajw | ok, just a reboot first | 21:55 |
lkcl | reboot?! moo? :) | 21:55 |
lkcl | ahh the "run setup scripts" option is false | 22:08 |
* lkcl investigating the bind-mounts | 22:08 | |
mikolajw | now I get "W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg" | 22:08 |
mikolajw | you changed "http://" to "https://". Switching it back to "http://" removed the error | 22:11 |
mikolajw | is http:// tolerable for you? | 22:11 |
mikolajw | (the warning is still here, but is not treated like an error, apparently) | 22:12 |
lkcl | yes i don't care at all. will commit that | 22:12 |
lkcl | i found out how to not need the bind mounts, schroot type=directory | 22:13 |
mikolajw | the Python error went away. but I still get hostname resolution errors, but for ftp.uk.debian.org | 22:14 |
mikolajw | Err:1 http://ftp.uk.debian.org/debian buster InRelease | 22:14 |
mikolajw | Temporary failure resolving 'ftp.uk.debian.org' | 22:14 |
lkcl | bizarre. | 22:16 |
lkcl | ohh i wonder if you have something weird / unique about archlinux involving DNS resolution | 22:16 |
mikolajw | also I sometimes get something messed up in my Arch system due to this script | 22:16 |
mikolajw | I can't create new Tmux panes now | 22:16 |
lkcl | ?? | 22:17 |
mikolajw | this happened for the second time now | 22:17 |
mikolajw | warning: An error occured while redirecting file '/dev/null' | 22:17 |
lkcl | !! | 22:17 |
lkcl | ahh hang on | 22:17 |
lkcl | check /etc/fstab | 22:18 |
mikolajw | yea | 22:18 |
mikolajw | duplicates | 22:18 |
lkcl | you didn't happen to... yeah | 22:18 |
lkcl | delete the duplicates | 22:18 |
lkcl | run umount /opt/chroot/etc/etc manually | 22:18 |
lkcl | i'm just removing that part of the script | 22:18 |
lkcl | you absolutely do not need to reboot, this is a windows-ism | 22:19 |
mikolajw | there should be a way to prevent the duplicates from appearing, that's why I asked if this /etc/fstab part is necessary earlier | 22:19 |
lkcl | yes, i'm sorting that out | 22:19 |
lkcl | >>>> * lkcl investigating the bind-mounts <<<< | 22:19 |
mikolajw | I reboot to put my system in a determined state without having to think too much | 22:19 |
lkcl | >>>> lkcl> i found out how to not need the bind mounts, schroot type=directory <<<< | 22:19 |
lkcl | ok git pull | 22:20 |
mikolajw | but first another reboot, because neither git pull nor umount appear to be working :) | 22:22 |
lkcl | doh | 22:23 |
* lkcl welcome back | 22:31 | |
mikolajw | yes, I need a bouncer | 22:31 |
lkcl | bnc4you | 22:31 |
lkcl | a bit obscure, but they're really helpful and responsive on #bnc4you | 22:32 |
mikolajw | E: /etc/schroot/schroot.conf: line 77: Duplicate group ‘chrootdir’ | 22:32 |
lkcl | ok to *possibly* help with /etc/resolv.conf inside the chroot i'm... | 22:32 |
lkcl | yes if you're using the same name you'll need to delete the duplicate entries in /etc/schroot/schroot.conf | 22:33 |
lkcl | also trying to debootstrap twice to the same location... mmm... | 22:33 |
lkcl | i've just updated the script so that it uses schroot -c {chrootname} /bin/bash << EOF | 22:34 |
lkcl | *not* | 22:34 |
lkcl | chroot /blah/blah /bin/bash << EOF | 22:34 |
lkcl | so you *will* have to make sure that there's no duplicate entries already in /etc/schroot/schroot.conf | 22:34 |
lkcl | btw FOR GODS SAKE do NOT attempt to rm -fr from inside the chroot to get rid of the chroot | 22:35 |
mikolajw | yeah, I now have three groups "chrootdir" and 10 groups "deb" (that's how I call my chroot dir) in schroot.conf | 22:35 |
lkcl | you will DESTROY /tmp, and your actual /home directory both of which are bind-mounted | 22:35 |
mikolajw | I suggest making the script idempotent | 22:35 |
lkcl | run "mount | grep chrootdir" from OUTSIDE | 22:36 |
lkcl | these are not intended to be sophisticated scripts | 22:36 |
lkcl | they're "get-it-done" scripts | 22:36 |
lkcl | i'm quite happy for someone to submit patches that improve them though | 22:36 |
lkcl | but without "are you sure are you really sure are you really really sure" prompts :) | 22:37 |
mikolajw | oh, but that would just require grepping for [$chrootdir] | 22:38 |
lkcl | unix "we assume you know the consequences" philosophy applies :) | 22:38 |
lkcl | strictly speaking you should never be running with the exact same chroot name anyway | 22:38 |
lkcl | it's intended as a one-off | 22:38 |
mikolajw | all I want is just not shooting myself in the foot | 22:38 |
lkcl | therefore, strictly, the correct thing to do would be to terminate the script if it finds that /opt/schroot/{insertchrootname} already exists | 22:39 |
lkcl | well, beyond this point it's plain sailing | 22:40 |
lkcl | but | 22:40 |
lkcl | i did say, "anything other than debian", we really should not be spending time on | 22:40 |
lkcl | for exactly the reasons of incompatibility and "support" | 22:41 |
mikolajw | ok, that would be sufficient for me | 22:41 |
lkcl | however what's happened now is that the scripts are much better | 22:41 |
lkcl | no explicit bind mounts | 22:41 |
lkcl | using schroot itself to install the base dependencies | 22:41 |
lkcl | which _shouuuuld_ also fix /etc/resolv.conf | 22:42 |
lkcl | due to running the schroot setup scripts now, i think it copies over /etc/resolv.conf | 22:42 |
lkcl | yes it does, excellent | 22:42 |
lkcl | urr oh! and appears to bind-mount /etc/passwd and /etc/shadow. nice | 22:43 |
lkcl | or copy them over | 22:43 |
lkcl | not too sure that's a good idea or not, have to think about that | 22:43 |
lkcl | but /etc/resolv.conf, yeah that should "fix" the DNS issues | 22:43 |
lkcl | ok from here you should be good to go | 22:44 |
lkcl | ironically you now need to git clone (or cp -aux) the dev-setup-env scripts _again_ but this time inside the schroot | 22:44 |
lkcl | https://libre-soc.org/HDL_workflow/devscripts/ | 22:44 |
* lkcl going to try that | 22:44 | |
lkcl | ah. | 22:45 |
lkcl | we actually don't want /home bind-mounted | 22:45 |
lkcl | for coriolis2 | 22:45 |
mikolajw | getting a different error (usually) means progress, here's the new error: | 22:54 |
mikolajw | E: 20nssdatabases: /usr/bin/stat: cannot statx '/etc/networks': No such file or directory | 22:54 |
mikolajw | E: deb-d7e8411d-04b8-4d8c-a409-9021dbe0b739: Chroot setup failed: stage=setup-start | 22:55 |
lkcl | i know what that is. | 22:58 |
lkcl | haaang on, the schroot has mounted the entire / directory! | 22:59 |
lkcl | sigh | 22:59 |
lkcl | frickin frick | 22:59 |
mikolajw | snafu | 22:59 |
lkcl | and there's also nssdatabases including /etc/networks which gets copied over by default schroot profile | 23:00 |
lkcl | which don't exist *but* would have been set up in /opt/chroot/{chrootname} | 23:00 |
lkcl | grrrr | 23:00 |
lkcl | ooo chroot scripts are a time-sink :) | 23:28 |
lkcl | running them again and again each time 5-10-15 mins because of one error, sigh | 23:28 |
lkcl | paaaatieeeeeence.... | 23:28 |
mikolajw | success? | 23:47 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!