BluesKaj | Hiyas all | 10:55 |
---|---|---|
tsimonq2 | !info vlc | 12:10 |
ubottu | vlc (source: vlc): multimedia player and streamer. In component universe, is optional. Version 2.2.1-3 (wily), package size 1461 kB, installed size 4450 kB | 12:10 |
tsimonq2 | so it IS a package | 12:10 |
tsimonq2 | when I do sudo apt-get install vlc, it says E: Unable to locate package vlc | 12:11 |
tsimonq2 | can anyone help? | 12:11 |
lordievader | tsimonq2: Is the universe repo enabled? | 12:12 |
tsimonq2 | let me pastebinit my sources.list for ya | 12:13 |
tsimonq2 | lordievader: I am assuming it is, right? http://paste.ubuntu.com/12734317/ | 12:14 |
lordievader | tsimonq2: Universe is enabled, what does 'apt-cache search vlc' output? | 12:15 |
tsimonq2 | with sudo? | 12:15 |
lordievader | tsimonq2: No need for sudo. | 12:15 |
tsimonq2 | the output: http://paste.ubuntu.com/12734335/ | 12:16 |
lordievader | tsimonq2: Interesting, what is the output of 'sudo apt-get update'? | 12:16 |
tsimonq2 | lordievader: http://paste.ubuntu.com/12734346/ | 12:17 |
tsimonq2 | lordievader: and if it helps, I am running in i386 | 12:18 |
lordievader | tsimonq2: Now run the apt-cache search again. | 12:18 |
tsimonq2 | lordievader: http://paste.ubuntu.com/12734355/ | 12:18 |
tsimonq2 | woah | 12:19 |
lordievader | There we go, your sources were outdated. | 12:19 |
tsimonq2 | was it *really* the fact that I didn't update my repo list | 12:19 |
tsimonq2 | wow fail XD | 12:19 |
* tsimonq2 facepalms | 12:19 | |
tsimonq2 | well thank you | 12:19 |
lordievader | No problem ;) | 12:19 |
tsimonq2 | see you over in #kubuntu-offtopic ;) | 12:20 |
bcx | Has been libreoffice-style-crystal removed from wily ? | 12:57 |
baizon | hi, any troubles with 15.10? | 13:55 |
baizon | or can i upgrade? :D | 13:55 |
bcx | Anyone succeeded a wily luks-root ? I got KP trying in virtualbox. | 15:40 |
TJ- | bcx: I use LUKS for /boot/ and for the root LVM VG | 15:45 |
bcx | great, did you install with cd ot manual debootstrap ? | 15:46 |
bcx | TJ:- i use deboostrap to build systems on virtualbox, when using cryptoroot initramfs hook I got KP related to innotek (virtualbox) input device (keyboard ?) ? | 15:48 |
TJ- | I do it myself usually, but I tested the installer in a VM and it worked | 15:48 |
TJ- | bcx: that sounds unrelated to LUKS; that sounds like a missing/bad module in the initrd | 15:49 |
bcx | TJ-: building without cryptoroot succeeds | 15:50 |
TJ- | bcx: can you capture the output to a pastebin? | 15:50 |
TJ- | bcx: do you get the systemd-cryptsetup prompt for the LUKS pass-phrase? | 15:51 |
bcx | TJ-: I can use serial console on virtualbox | 15:51 |
TJ- | bcx: I use a key-file so don't have to enter a pass-phrase | 15:51 |
bcx | TJ-: i love passwords | 15:52 |
bcx | only stored on my biological ram :) | 15:52 |
TJ- | I only have to enter the passphrase for GRUB to unlock its root file-system | 15:52 |
bcx | ah ok | 15:53 |
bcx | my installer script supports prompting either in grub or initramfs, i remember that both failed but will retry | 15:54 |
bcx | will be back with logs in an hour or so, thanks TJ- | 15:55 |
* penguin42 wonders what gpu-manager is and wth it took 16s according to systemd-analyse | 16:17 | |
TJ- | It's the tool for trying to ensure the correct drivers are in place, especially when Optimus chipsets are present | 16:45 |
bcx | TJ-: retried with serial console but I got interesting initramfs shell code on the real tty just before the KP, can it be redirected to serial ? | 16:49 |
bcx | TJ-: https://paste.debian.net/315269/ | 16:51 |
bcx | on real tty i can see 'echo "Somtehing went badly wrong in the initramfs"', 'panic "please file a bug on initramfs-tools"' | 16:53 |
penguin42 | TJ-: Yes, but the interesting question is why it took 16s to figure out that my boring old intel doesnt | 16:55 |
TJ- | bcx: "Spurious NAK" - suggests the Vbox devices are causing an issue | 16:55 |
TJ- | penguin42: "/var/log/gpu-manager.log" maybe? | 16:55 |
bcx | TJ-: yes but here it talking about the serial link, not sure I get the same msg w/o serial console | 16:55 |
TJ- | bcx: does the guest have some vbox 'guest extensions' installed? | 16:55 |
bcx | TJ-: not sure | 16:56 |
TJ- | bcx: oh, you mean the serio0 is the Vbox serial console as seen from the guest? | 16:56 |
bcx | i think so | 16:56 |
penguin42 | TJ-: Nothing incorrect in there | 16:58 |
TJ- | penguin42: doesn't help there are no timestamps! | 16:58 |
bcx | when i boot normally and use pause I can see a full shell script sources outputed on real tty | 16:59 |
TJ- | bcx: you see the *source code* of a script? | 16:59 |
bcx | and finally KP not syncing: Attempted to kill init | 16:59 |
bcx | TJ-: yes | 16:59 |
TJ- | bcx: is each line preceeded with "+" symbols? | 17:00 |
penguin42 | TJ-: Right, but there are timestamps in the journalctl -u and that does show it taking 14 seconds | 17:00 |
TJ- | penguin42: can you use those to determine which gpu-manager operation took most of the time? | 17:01 |
penguin42 | TJ-: No | 17:01 |
penguin42 | TJ-: There are 4 moans of /etc/modprobe.d is not a file | 17:02 |
TJ- | penguin42: the biggest timestamp gap I see is after "Started Detect the available GPUs and deal with any system changes." | 17:02 |
TJ- | penguin42: 6 seconds here | 17:02 |
penguin42 | TJ-: the other log mentioned grepping dmesg for 256=0 which sounds expensive | 17:02 |
* penguin42 would love to paste you the contents from mine, but konsole just doesn't want to do a copy today - sigh | 17:04 | |
bcx | TJ-: no it it is really sources, not set -x output | 17:04 |
TJ- | penguin42: Personally I'd purge it: "gpu-manager -h" ==> "Segmentation fault (core dumped)" | 17:05 |
TJ- | bcx: so something is bad with the initrd.img then, rebuild it, test again | 17:05 |
TJ- | penguin42: apparently you can run it manually. maybe do that and see if it pauses between messages | 17:06 |
penguin42 | TJ-: Yeh, it shouldn't take 6 seconds for you either - this machine is a crusty old core2 so I can see it taking longer, but 6 seconds during boot is still insane | 17:07 |
TJ- | penguin42: doesn't mean it is doing anything. It might be waiting from something to become available | 17:08 |
TJ- | penguin42: running it manually there is no pause | 17:09 |
penguin42 | TJ-: That should be a dependency in the systemd config file for though shouldn't i | 17:09 |
penguin42 | TJ-: Yeh similarly it's under a second here from a running system | 17:09 |
TJ- | penguin42: it starts when the DM is starting, so it is probably waiting for X or something | 17:10 |
penguin42 | ls | 17:14 |
penguin42 | oops | 17:14 |
penguin42 | TJ-: It's a bit grim; C file spawning off a dmesg|grep to grep for pci ids | 17:16 |
TJ- | dmesg isn't large, so that shouldn't take a long time, unless dmesg is full of spam/errors | 17:19 |
penguin42 | yeh only 880 lines | 17:21 |
=== not_phunyguy is now known as phunyguy | ||
bcx | TJ-: is there a simple way to pipe initramfs output to serial ? | 21:10 |
bcx | TJ-: is there a simple way to debug initramfs other than adding 'set -x' in all scripts and 'read' for timing ? | 21:11 |
bcx | TJ-: i'm not sure 'read' will receive stdin and interrupt execution | 21:12 |
TJ- | bcx: no, but you can use the maybe_break XXXX hooks with break=XXXX to bisect which 2 points the problem stems from | 21:13 |
TJ- | bcx: see "/usr/share/initramfs-tools/init" which is the /init script | 21:13 |
clivejo | has mencoder been removed from wily? | 21:24 |
TJ- | apparently | 21:29 |
clivejo | TJ-: know why? | 21:29 |
TJ- | It was removed for Utopic | 21:31 |
clivejo | for why? | 21:32 |
TJ- | No idea; from a browse on packages.ubuntu.com it looks like when mplayer was replaced by mplayer2 | 21:34 |
=== trism_ is now known as trism | ||
=== trism is now known as trism_ | ||
=== trism_ is now known as trism | ||
=== trism is now known as trism_ | ||
=== qengho_ is now known as CardinalFang | ||
=== trism_ is now known as trism | ||
=== Termana_ is now known as Termana | ||
bcx | TJ-: as i said previously i get irfs' init output to screen instead of being executed | 21:48 |
TJ- | bcx: that makes no sense at all. The only way I could imagine that happening would be for some strange kernel commandline or corrupted /init | 21:50 |
bcx | i bet for the later | 21:51 |
penguin42 | if it's getting as starting systemd I think there's a command line option to debug it | 21:52 |
TJ- | bcx: it sounds as if it is 'cat'ing itself | 21:52 |
bcx | TJ-: i replaced all maybe_break calls with panic and cannot break in before | 21:52 |
bcx | i can try to add an interrupt at the very top to check if init gets called | 21:53 |
TJ- | bcx: replaced? | 21:53 |
bcx | in the init script | 21:54 |
bcx | so i don't think it's self-cating or if it does it's before the first maybe_break call | 21:55 |
TJ- | bcx: I'm struggling to understand why you'd change those 'maybe_break XXX' lines | 21:56 |
bcx | now i will try with 'read -p hello' as init first line | 21:57 |
bcx | TJ-: for debugging that way if the init file was executed i could figure out the script part causing this | 21:57 |
bcx | but as i said i don't think init gets executed | 21:58 |
TJ- | bcx: if you're messing with the script directly theres likelyhood you've broken it. | 21:58 |
TJ- | bcx: the kernel will execute "/init", see the she-bang in line 1, and load it via the shell | 21:59 |
bcx | each time i restart from the virtualbox snapshot with initial configuration | 21:59 |
TJ- | the she-bang is a 'magic' that bintfmt recognises | 21:59 |
TJ- | s/bintfmt/binfmt/ | 22:00 |
bcx | same thing, | 22:02 |
bcx | now i will paste a very long recognizable pattern into the init file so i can catch it with pause | 22:03 |
bcx | in case the irfs executed is not the one i debug | 22:03 |
TJ- | bcx: the initrd name will be in the boot-loader entry | 22:04 |
bcx | TJ-: can i customize the name to be sure ? | 22:06 |
TJ- | bcx: it should be correctly set by update-grub if you use GRUB. the name will match the kernel version | 22:06 |
bcx | as i have a unique kernel on this system I will use my simple technique: put 10k dash lines in the init file and catch it | 22:08 |
bcx | caught | 22:09 |
bcx | so i can confirm my issue: i got init script output to the console instead of executed | 22:10 |
penguin42 | that's really weird | 22:10 |
bcx | i use the same script to build ubuntu systems and it works flawlessly with trusty & vivid | 22:12 |
bcx | it has nothing release specific except debootstrap --keyring=/etc/apt/trusted.gpg for wily | 22:13 |
bcx | this issue may come from grub | 22:14 |
bcx | which i use like you with cryptomount command | 22:14 |
TJ- | bcx: "dd if=/boot/initrd.img-$VERSION count=1 | hexdump -C | pastebinit" | 22:16 |
bcx | https://paste.debian.net/315296/ | 22:20 |
TJ- | bcx: that's not a valid initrd image | 22:21 |
bcx | TJ-: lsinitramfs can parse it | 22:21 |
bcx | what's the problem ? | 22:22 |
TJ- | bcx: does it have a microcode header ? | 22:22 |
bcx | i don't know what are you talking about | 22:22 |
TJ- | initial ramdisk images can contain binary prefixes containing microcode updates the kernel needs to apply before the init system starts | 22:23 |
penguin42 | cool didn't know that | 22:23 |
penguin42 | TJ-: Is that just to cope with the transactional hack on haswell? | 22:24 |
bcx | TJ-: how can i check/disable this ? | 22:25 |
TJ- | penguin42: it's a generic mechanism, but is currently being used for such things | 22:26 |
TJ- | bcx: The thing is, that should not cause what you are experiencing but I suspect it is. I compared your hexdump with one on my 4.2.x system and they look different | 22:26 |
TJ- | bcx: I have a script I use to extract initrd images for inspection. Try it: https://iam.tj/projects/misc/initrd-extract.bash | 22:30 |
TJ- | bcx: usage for a single initrd.img (not all installed) is initrd-extract /boot/initrd.img-$VERSION | 22:31 |
TJ- | bcx: then hexdump the /init script again lets see if there are some bad magic bytes | 22:32 |
bcx | previously i hexdumped the image not the script | 22:34 |
bcx | TJ-: sorry i don't understand | 22:35 |
bcx | btw you should add ' && [[ -n "$INITRD_LIST" ]]' to '[[ -z "$1" ]]' in case no image found in /boot | 22:38 |
bcx | it would fail gracefully | 22:39 |
penguin42 | bcx: Did you say you've got a special kernel build? | 22:39 |
TJ- | I've never needed it on a system that doesn't have initrd.img s :) | 22:40 |
bcx | i use standard trusty livecd with zfs-native ppa modules | 22:40 |
bcx | TJ-: i did ;) | 22:40 |
TJ- | bcx: once the script has extracted the initrd correctly (to a directory under /tmp/) you can hexdump the /init script correctly so we can check the magic at the start of the file | 22:41 |
TJ- | Processing 35551541 bytes of /boot/initrd.img-4.2.0-11-lowlatency | 22:42 |
TJ- | Skipping 21504 bytes pre-pended early initramfs image (possibly CPU microcode) | 22:42 |
TJ- | Creating /tmp/initrd.img.8844 for remaining 35530037 bytes | 22:42 |
TJ- | Processing 35530037 bytes of /tmp/initrd.img.8844 | 22:42 |
TJ- | Executing /bin/cat "/tmp/initrd.img.8844" | /bin/zcat | /bin/cpio --extract --make-directories | 22:42 |
TJ- | 184924 blocks | 22:42 |
TJ- | Extracted 1481 files to /tmp/initrd/4.2.0-11-lowlatency/ | 22:42 |
* TJ- blows *raspberries* at the paste warning :) | 22:42 | |
bcx | but the magic i pasted previously is from the image, not the script | 22:42 |
bcx | so maybe you want to see the script's magic, instead of the image's one | 22:43 |
TJ- | bcx: now I can do "hexdump -C /tmp/initrd/4.2.0-11-lowlatency/init | head | 22:44 |
TJ- | 00000000 23 21 2f 62 69 6e 2f 73 68 0a 0a 23 20 44 65 66 |#!/bin/sh..# Def| | 22:44 |
TJ- | bcx: correct, and the script magic is the important thing we want to see | 22:44 |
bcx | understood | 22:45 |
TJ- | bcx: if that looks correct then it is possible the early-initramfs image is somehow breaking things | 22:45 |
TJ- | bcx: how many bytes does my script report it skipping for the early initramfs image? | 22:46 |
bcx | it's clean | 22:48 |
bcx | https://paste.debian.net/315297/ | 22:49 |
bcx | TJ-: what/where is the "early" initramfs ? new to me | 22:50 |
penguin42 | bcx: You said you were using zfs; on which partitions? | 22:52 |
TJ- | bcx: it is the first part of the initrd.img, an optional add-on used for loading microcode patches and other things the kernel needs before userspace starts | 22:52 |
TJ- | bcx: what does this report "file /tmp/initrd/*/bin/{busybox,sh}" | 22:53 |
bcx | sorry, zfs is not incriminated, i get the same results w/o zfs, here i test with ext4 and no zfs modules | 22:53 |
* TJ- suspects a 32-bit kernel and 64-bit userspace | 22:54 | |
penguin42 | oh that would be fun | 22:54 |
bcx | all 64 | 22:55 |
TJ- | It would explain in some weird way the script not being executed, although I have difficulty imagining how that would come about :) | 22:55 |
TJ- | bcx: I have to suspect your build scripts at this point, something done/not done/done differently | 22:55 |
penguin42 | bcx: If you pass init=/bin/sh on the command line do you get a shell? | 22:56 |
bcx | good test | 22:56 |
bcx | no | 22:57 |
penguin42 | how does that fail? | 22:57 |
bcx | same KP Attempted to kill init | 22:58 |
penguin42 | what's before that line | 22:58 |
bcx | cannot catch it | 22:58 |
penguin42 | really? That's normally right near the end | 22:58 |
bcx | can't see what is before the KP *block* | 22:58 |
TJ- | penguin42: because that is executed at the termination of the initrd /init script, not in place of it | 22:59 |
penguin42 | oh yeh | 22:59 |
TJ- | penguin42: the initrd /init script passes that parameter in its final switch_root | 22:59 |
penguin42 | bcx: Try adding boot_delay=50 it will cause all the text output during boot to slow down, maybe you can catch what happens easier? | 23:01 |
penguin42 | increase 50 to taste | 23:01 |
TJ- | If the initrd /init script is being 'cat'-ed' not executed that suggests the /bin/sh (as in the she-bang magic) is faulty. /bin/sh is usually a multicall entry in a statically linked /bin/busybox | 23:01 |
bcx | wow using init=/bin/sh i can see its binary code | 23:01 |
penguin42 | that's a weird failure mode | 23:02 |
bcx | penguin42: i have busybox-static package installed in my script | 23:02 |
penguin42 | bcx: What exactly is your script doing? | 23:03 |
bcx | debootstrap & miniman config with various advanced storage features zfs, crypto, fde | 23:04 |
bcx | but in this case no feature | 23:05 |
bcx | TJ-: will try w/o busybox-static | 23:06 |
TJ- | bcx: It shouldn't matter, but the usual busybox install is dynamically linked, for some reason | 23:06 |
TJ- | bcx: can you execute the busybox that was extracted under /tmp/... by my script? | 23:07 |
bcx | TJ-: no ! | 23:11 |
penguin42 | and the error is? | 23:12 |
bcx | hangs | 23:12 |
TJ- | bcx: HAHA... so bin/sh will fail too. do "ldd bin/busybox" any missing libraries? | 23:12 |
bcx | 64bit dynamically linked | 23:12 |
penguin42 | you do have the dynamic linker - right? | 23:13 |
bcx | https://paste.debian.net/315298/ | 23:14 |
bcx | shouldn't be static as the package is installed ? | 23:15 |
TJ- | that pastebin looks to be cut-off early | 23:16 |
TJ- | here's what I see on 14.04: http://paste.ubuntu.com/12745262/ | 23:17 |
bcx | sorry https://paste.debian.net/315299/ | 23:17 |
bcx | it's a wily system debootstrapped on trusty | 23:18 |
TJ- | bcx: take a hash of the file in the initrd, compare to the hash of the file in the installed file-system | 23:18 |
bcx | in the debootstrapped file system i got a static one | 23:19 |
bcx | which i can run | 23:19 |
bcx | don't know where this dynamically linked one comes from | 23:20 |
TJ- | sha1sum bin/busybox /usr/lib/initramfs-tools/bin/busybox | 23:20 |
TJ- | dc3e621c72cde19593c42a7703e143fd3dad5320 bin/busybox | 23:20 |
TJ- | dc3e621c72cde19593c42a7703e143fd3dad5320 /usr/lib/initramfs-tools/bin/busybox | 23:20 |
bcx | https://paste.debian.net/315300/ | 23:22 |
bcx | where does it come from ? | 23:22 |
TJ- | is the initrd one even valid? | 23:22 |
bcx | i can run /mnt/target/usr/lib/initramfs-tools/bin/busybox | 23:23 |
TJ- | bcx: my hashes came from 14.04; I'll check on 15.10 now | 23:23 |
TJ- | bcx: so, that suggests the one in the initrd is bad/corrupt | 23:23 |
bcx | of course | 23:24 |
bcx | bravo TJ- | 23:24 |
TJ- | $ sha1sum /tmp/initrd/4.2.0-11-lowlatency/bin/busybox /usr/lib/initramfs-tools/bin/busybox | 23:24 |
TJ- | c90333979f56f38bbd41b81806015b0de502f3cc /tmp/initrd/4.2.0-11-lowlatency/bin/busybox | 23:24 |
TJ- | c90333979f56f38bbd41b81806015b0de502f3cc /usr/lib/initramfs-tools/bin/busybox | 23:24 |
TJ- | which matches you installed package, but not the initrd | 23:24 |
penguin42 | still, that sha matches another one | 23:28 |
penguin42 | https://wiki.strongswan.org/projects/strongswan/wiki/IMA/9 | 23:28 |
penguin42 | so it's apparently an old /bin/sh | 23:29 |
penguin42 | whether that's actually a busybox I don't know | 23:29 |
TJ- | you're mixing them up. That is the 14.04 busybox | 23:29 |
TJ- | the one that is corrupt is fce342dd3fce6e0e3ba88e4249cb7a210a42844a | 23:29 |
TJ- | as listed at https://paste.debian.net/315300/ | 23:29 |
penguin42 | oops yes | 23:30 |
bcx | the sha is preserved with update-initrd | 23:31 |
bcx | update-initramfs i mean | 23:31 |
TJ- | I'd best start winding down for sleep; I'm out to catch the last flight of the XH558 Vulcan tomorrow | 23:31 |
TJ- | bcx: did you recreate the initrd, or update it? | 23:31 |
penguin42 | ah, I think I missed that here today since I didn't know it was around | 23:31 |
bcx | thank you TJ- | 23:32 |
TJ- | penguin42: I almost did but noticed it Friday night | 23:32 |
bcx | penguin42: -c -k all | 23:32 |
TJ- | bcx, so is there some corruption being introduced? does adding '-v' to capture a verbose log show where that busybox is coming from? | 23:32 |
penguin42 | some junk under /etc/initramfs-tools or the like? | 23:33 |
bcx | https://paste.debian.net/3153001 | 23:33 |
TJ- | I still maintain the symptoms suggest that /init is being 'cat'-ed - what's that chance that sha1sum matches the hash for the /bin/cat ? | 23:34 |
penguin42 | so it does! | 23:34 |
bcx | then https://paste.debian.net/3153002 | 23:34 |
penguin42 | fce342dd3fce6e0e3ba88e4249cb7a210a42844a /bin/cat | 23:34 |
TJ- | HAHA! catch! | 23:35 |
* penguin42 blames it on caturday | 23:35 | |
TJ- | bcx: there you go; something in your config is putting /bin/cat in there | 23:35 |
TJ- | LOL | 23:35 |
bcx | zz-busybox-initramfs hook ? https://paste.debian.net/3153002 | 23:36 |
penguin42 | bad link | 23:37 |
TJ- | no, he just types too many zeros in them :) | 23:38 |
TJ- | bcx: add "set -x" to zz-busybox-initramfs | 23:39 |
penguin42 | oh | 23:39 |
TJ- | bcx: I don't think its that because the script is doing links, but best to be sure | 23:39 |
bcx | https://paste.debian.net/315304 | 23:41 |
penguin42 | bcx: sha1sum /usr/lib/initramfs-tools/bin/busybox | 23:43 |
TJ- | that looks fine, although I don't know why it uses symbolic links since cpio archives cannot preserve those, and end up adding 2 copies of the multicall binary | 23:43 |
TJ- | penguin42: from earlier: | 23:44 |
TJ- | root@ubuntu:~# sha1sum /mnt/target/usr/lib/initramfs-tools/bin/busybox | 23:44 |
TJ- | c90333979f56f38bbd41b81806015b0de502f3cc /mnt/target/usr/lib/initramfs-tools/bin/busybox | 23:44 |
TJ- | in https://paste.debian.net/315300/ | 23:44 |
penguin42 | hmm | 23:44 |
bcx | wat is copy_exec | 23:44 |
TJ- | bcx: a helper function | 23:45 |
bcx | defined where ? | 23:45 |
TJ- | in the initramfs-tools hook script | 23:45 |
TJ- | bcx: before we get sidetracked, have you checked both bin/sh and bin/busybox from the initrd? | 23:45 |
bcx | hoolk-functions | 23:45 |
TJ- | bcx: if bin/busybox --version works but bin/sh --version doesn't we know its not directly a zz-busybox-... issue | 23:46 |
TJ- | bcx: here's a nice way to figure out if things changed: "ls -latr bin/" ... all the busybox tools should be identical in size to bin/busybox itself | 23:50 |
bcx | https://paste.debian.net/315307 copy_exec with set -x if $2==/bin/busybox | 23:51 |
TJ- | bcx: that may reveal other executables aren't in fact from BB | 23:51 |
TJ- | bcx: if bin/sh is actually /bin/cat then I reckon there's a script doing a complex shell replacement parameters operation that is failing and ending up doing "cp /bin/cat /target/.../bin/sh" instead of something like "cp $(...something...cat...) /target/.../bin/sh" | 23:54 |
bcx | --version is ok | 23:54 |
bcx | it's hanging when called with no arguments | 23:55 |
penguin42 | the thing is if they're all linked together because they're all busybox, how does cat end up being different | 23:55 |
penguin42 | oh it isn't, it's they're all cat | 23:55 |
bcx | busybox misinterprets $0 | 23:55 |
TJ- | hooks/klibc:28: cp -pL /usr/lib/klibc/bin/sh ${DESTDIR}/bin/sh | 23:56 |
bcx | https://paste.debian.net/315308 | 23:56 |
TJ- | penguin42: they're not linked together, that's the point. cpio archives cannot represent symbolic links, so it ends up as a copy operation, so we have loads of supposed identical binaries with different names, except right now bin/sh is not the same binary as busybox, its /bin/cat | 23:57 |
TJ- | bcx: it's looking like some other script is running AFTER zz-busybox | 23:58 |
TJ- | bcx: klibc being the candidate | 23:58 |
bcx | yes ! | 23:58 |
bcx | i have /etc/initramfs-tools/hooks/copy-cat.sh | 23:59 |
TJ- | bcx: can you show us the entire log of update-initramfs, rather than an extract? | 23:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!