/srv/irclogs.ubuntu.com/2015/10/11/#ubuntu+1.txt

bcxdoing cp /bin/cat \$DESTDIR/bin00:00
penguin42gee - what do you reckon copy-cat does?00:00
TJ-!! that's one of your own scripts?00:00
ubottuTJ-: I am only a bot, please don't think I'm intelligent :)00:00
bcxyes00:00
TJ-bcx *slapz*00:01
TJ-bcx: but, the line you're showing isn't going to over-write bin/sh00:01
bcxnot intended to :)00:02
TJ-bcx: my point is it isn't replacing bin/sh ... so not the explanation00:02
bcxyou're right so where do you want i put set -x ?00:03
TJ-bcx: just show me the current complete update-initramfs log00:03
bcxshould i revert set -x ?00:04
TJ-bcx: no, I don't mind that, I just want to check the order the hooks are called00:04
penguin42TJ-: But if they're all hardlinked at that point what happens when the cp copies over cat?00:04
TJ-penguin42: not hardlinked, literally duplicates00:04
TJ-penguin42: as in, not identical inodes00:04
penguin42hmm00:04
bcxhttps://paste.debian.net/31531200:06
TJ-line 923 onwards. confirms its not the last hook00:07
TJ-bcx: you'd best show is the full text of both of your scripts00:07
TJ-s/is/us/00:08
TJ-OH! there is no "Preferring busybox bin/sh over klibc"00:09
bcxhttps://paste.debian.net/31531300:09
bcxsorry https://paste.debian.net/31531300:10
bcxsorry https://paste.debian.net/31531400:12
bcxBB_LIST ?00:13
bcxTJ-:   https://paste.debian.net/31531500:15
bcxTJ-:   https://paste.debian.net/315316 set -x in zz-...00:18
bcxline 47 ?00:20
TJ-bcx: let's force mkinitramfs -k keep the generated file-system in /tmp/ so we can check what it has created without needing to open the cpio archive. Edit /usr/sbin/update-initramfs, and in generate_initramfs() function, add to OPTS="-o" the -k so you have OPTS="-o -k"00:21
bcxTJ-:  no "preferring" because of line 10400:23
TJ-bcx: yes, I wasn't pointing that out as an error, just a notice since it tells us zz-busybox.. isn't trying to replace an existing bin/sh put there by something else. Which also tells us the fault happens after zz-busybox... runs00:25
bcxok00:25
TJ-bcx: in case I have different hooks installed here; can you show me "ls -latr /usr/share/initramfs-tools/hooks/"00:27
bcxsince -k, update-initramfs fails https://paste.debian.net/31531700:28
bcxhttps://paste.debian.net/31531800:28
TJ-315317 looks like it ran outside the chroot00:30
bcxis the patch correct ? https://paste.debian.net/31531400:34
bcxhmmm ... ran from chroot00:34
bcxremoving -k succeeds00:35
TJ-that is weird!00:35
TJ-/usr/sbin/mkinitramfs takes -k to set its 'keep=yes'00:36
bcx-k -o00:39
bcxTJ-: -o ARG00:40
bcxfixed00:40
TJ-yup, i figured the same out here :D00:41
bcxso now i get irfs uncompressed with cat instead of busybox00:42
TJ-bcx: now you can do "ls -l /var/tmp/mkinitramfs_*/bin/sh"00:42
bcxhttps://paste.debian.net/31532000:43
TJ-right, so now we know for sure00:44
TJ-disable all your custom /etc/initramfs-tools/hooks/ scripts, re-run, check again00:45
bcxgot busybox00:47
bcxso it's my scripts00:47
TJ-Yes, had to be! but why? any other scripts besides those you showed us? I can't see how "cp /bin/cat $DESTDIR/bin" would do that00:48
bcxit's copy-cat00:48
TJ-add "set -x" lets find out how00:48
bcxsimple00:55
bcxit copies cat to the busybox's cat symlink00:56
bcxcp /bin/cat ..../bin00:57
bcxTJ-:  ..../bin/cat already exists and is a link to busybox00:57
bcxso busybox get overwritten with cat00:57
TJ-bin/busybox isn't be overwritten though; bin/sh is00:58
bcxthey all get overwritten00:59
TJ-and cp /bin/cat is copying from an absolute path to ${DESTDIR}/bin which should only result in ${DESTDIR}/bin/cat00:59
TJ-bcx, oh! because they're hard linked?00:59
bcxhmmmm01:00
bcxshouldn't01:00
bcxi will add ls -l before01:00
TJ-I thought earlier we tested and bin/busybox --version showed busybox but bin/sh --version showed cat01:00
bcxno it was system's busybox that showed version01:01
TJ-if all the busyboc hardlinks are replaced then they'd all be 52000 bytes long, not 33179201:01
TJ-bcx: The commands I was giving you were meant to be run against the files in the initrd, not the system root01:02
bcxis that hard links ?01:02
bcxhttps://paste.debian.net/31532201:03
penguin42hard links01:03
penguin42see the '91' in the link count01:03
TJ-bcx: you'd need to do "ls -il" to see the inode numbers01:04
TJ-oh, you did01:04
TJ-no, you didn't :D01:04
TJ-I'm SO tired I can't think01:04
bcxhttps://paste.debian.net/31532301:05
penguin42yeh, bed is calling01:05
bcxthanks a lot01:05
bcxso i just have to rm before cp and it is ok01:05
TJ-bcx: OK, you can see those are all hardlinks to the bin/busybox... now re-enable your copy-cat script and test again01:05
bcxanyway these hardlinks did not exist with trusty & vivid01:05
TJ-bcx: "cp --remove-destination SOURCE DEST" will work, if this is the cause. Test it first to prove this is it01:06
TJ-I'd like to see proof that the cp is causing this01:07
TJ-in which case you'd need to use that copy_exec() hook function - possibly why its there?01:07
bcxit does01:07
bcxhttps://paste.debian.net/31532401:08
bcx--remove-destination should be default in scripts :)01:08
bcxthanks a lot TJ-01:09
bcxvery instructive journey01:09
TJ-It's a bit 'unexpected' that 'cp' only moves data into the destination rather than replacing the name+inode01:10
bcxin some cases we want that01:13
bcxhere not but i will remeber about using  cp --remove-destination  in scripts01:14
bcxnow my installer supports wily :) good as it is now my main target01:15
bcxuser test01:15
bcxthanks again & respect01:16
bcxlove to see what open source communities can do01:17
bcxTJ-: btw i would love you to review the installer before public release, will notice you in a few days01:18
lordievaderGood morning.08:27
BluesKaj'Morning all10:17
hvoigtHi, I am trying to install 15.10 but just found that the usb stick I made does not boot without UEFI mode. Is this a known problem? Where do I find the bugtracker? Google did not really help for 15.1012:26
hvoigtIt boots and works all fine with UEFI enabled (but since my Windows is installed without UEFI I can not install it in UEFI mode)12:29
BluesKajhvoigt, it won't boot in legacy mode with secure boot disabled ?12:30
=== ztane_ is now known as ztane
hvoigtBluesKaj: Yes I got an error there, but I just tried 15.04 and the first time it did boot but after a restart it failed. So maybe it might be a problem with my stick will check now and report back12:45
BluesKajhvoigt, ok good12:46
hvoigtok I tested a second time with a sd-card. Got the same problem: "Does not boot *without* UEFI mode". I get this directly after selecting the non-UEFI option from the boot menu of my board: http://postimg.org/image/yv5ulsycv/13:34
hvoigtWith UEFI mode all seems fine13:34
hvoigtThis should be really easy to reproduce since its happens immediately after boot and every time.13:36
penguin4210 out of 10 for helpful error messages13:37
hvoigtpenguin42: for me? Thanks!13:46
hvoigtSo is there anything left I can do?13:47
hvoigtMaybe a workaround so I can proceed with the installation and continue testing?13:48
penguin42hvoigt: I'm not sure since it doesn't give you much more info13:49
hvoigtBTW, starting 15.04 from the same stick without UEFI works now. Maybe I broke the filesystem before by pulling the stick out to early sometime.13:49
hvoigtpenguin42: and unfortunately I do not have any experience with syslinux ... is there a bugtracker or something where this should go to? Or do you just collect bugs internally?13:52
hvoigtwould also be interested for something I can watch so I can test once its fixed ..13:53
penguin42hvoigt: I think you need to file a bug on ubuntu's launchpad - if you've got it booted (via the EFI boot) then you could run ubuntu-bug13:53
penguin42hvoigt: You'll need an account launchpad.net13:53
hvoigtpenguin42: so I should run ubuntu-bug from the livesystem rather than from my current ubuntu installation? I think I have a launchpad account...13:55
penguin42hvoigt: Yeh, I think best from the livesystem, https://wiki.ubuntu.com/Bugs/FindRightPackage#During_boot   suggests it's best to file boot bugs against the kernel13:56
BluesKajhvoigt, I don't like repeating, but did you disable secure boot when trying to boot in legacy mode?13:56
hvoigtBluesKaj: there is secure boot in legacy mode? I thought that is a uefi thing? I can double check.13:58
BluesKajyeah, guess it depends on your uefi version14:02
BluesKajmy laptop has a mode called "backflash" that emulates a regular bios14:05
penguin42never underestimate how broken bioses can be14:11
hvoigtBluesKaj: ah ok14:17
hvoigtI think I found a bugreport about this: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/149974614:18
ubottuLaunchpad bug 1499746 in usb-creator (Ubuntu Wily) "Early Syslinux Boot Error in pendrive made with the Ubuntu Startup Disk Creator" [Critical,Triaged]14:18
BluesKajhvoigt, recommend you dd  to copy the iso to the usb stick,  usb creator was iffy when i tried it14:28
BluesKaj!dd14:28
BluesKaj!info dd14:29
ubottuPackage dd does not exist in wily14:29
BluesKajgawd, what a useless infobot14:29
BluesKajhvoigt, http://digitalsanctum.com/2007/01/26/how-to-make-an-iso-image-using-dd/14:30
OerHeksdd is part of coreutils15:03
BluesKajOerHeks, no matter, the bot should be informed of that and link to it15:05
hvoigtBluesKaj: Thanks for the tip, I ended up creating an usb stick with the creator and using syslinux from 15.04 (by booting the live system) to fix the created usb stick (syslinux --install /dev/sdXX)17:09
hvoigtgot that tip from the bugtraq entry saying that one should unpack the syslinux binary from 15.04 to fix it.17:09
BluesKajwell. I suggest you try dd the next time, it hasn't failed me yet, hvoigt17:11
hvoigtJust to be complete I will try this now, since my impression is that it has something to do with the image itself and not the "startup disk creator"17:14
hvoigtBluesKaj: You were right. It works with dd out of the box.17:34
hvoigtWhy is the startup media creator always popping up on google? Will just stick with dd for the future.17:34
BluesKajgood thought, dd is scary to some users dunno why, altho it can blank a hdd if misused17:38
BluesKajgoogle isn't as relaible for linux searches as it should be17:39
hvoigtBluesKaj: yeah I would not suggest dd to many endusers because of the risk to destroy everything if you switch target and source but if you are the think before you type kind of guy, I think its perfectly safe18:32
BluesKajhvoigt, yeah, it's a pretty simple command, hard to screw up IMO18:34
penguin42hvoigt: The problem is what else to suggest that actually works18:34
penguin42BluesKaj: Oh come on, swap an if and an of? Get the sd? one character wrong...18:35
hvoigtI just thought since ubuntu has this startup media creator it is the "more correct" way of doing things, since using dd always like a kind of hack. But IMO a reliable hack is better than a sometimes working tool (especially when just want it to work).18:35
penguin42hvoigt: Yes but the user has a problem with the thing that it created18:35
hvoigtpenguin42: you mean since the stick is unreadable by windows after using dd ?18:36
hvoigtI guess thats true since on Windows its not as easy to manage partitiontables as on linux18:37
penguin42hvoigt: No, they have boot problems with the stick created using the bootable device creator18:38
penguin42hvoigt: Oh it's you anyway (checks scrollback)18:38
penguin42hvoigt: dd is the right thing to use after finding that the normal stuff didn't work18:38
hvoigtpenguin42: yeah its a good fallback/workaround definitely18:39
BluesKajand unetbootin only worked 50% of the tries here18:42
penguin42and seems to have been getting worse18:44
BluesKajhaven't use it for a couple of yrs18:45
BluesKajsince I discovered dd18:45
hvoigtI only heard that some systems might not recognize the stick since there is no real partition table on them but a cd/dvd filesystem.18:52
penguin42hvoigt: The headers on them tend to be pretty complex these days, with partitions, filesystems, floppy boot images (often multiple) all to work around different broken firmwares18:54
furkandoes anybody else get regular segfaults 15.10 beta?21:04
furkanpidgin, chrome, texworks...21:05
furkani haven't had any with firefox21:05
fhfi havent got any so far on 15.10 with unity8&mir21:05
furkanyou mean unity8/mir are actually in a usable state now?21:07
fhfnope, you have to install normal willy and add21:08
fhfunity8-desktop-session-mir package21:09
fhfand select Unity 8 at LightDM21:09
furkani see21:10
calamariI'm having trouble with systemd. multiple issues, but the first is network manager. it says dependency failed. how can I figure how what it wants?21:55
Fauxsystemctl status network-manager.service # might have the details.21:57
calamarispecifically, "Unit NetworkManager-wait-online.service has failed"21:58
calamariit just tells me the same thing, but it doesn't tell me what dependency is needed21:59
hades08anyone could help me with ubuntu-core / snappy and apparmor ?21:59
calamari"Dependency failed for Network Manager Wait Online."21:59
hades08i want to put apparmor in complain for some lxd container22:00
hades08and im having issues :s22:00
calamariI guess network manager just doesn't work in wily22:19
calamariI wonder if I can put vivid back on22:19
calamariokay got past the networkmanager problem22:54
calamaritried apt-get --reinstall install systemd and got 5 Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)22:55
calamarithen it hangs22:55
calamarioh good after ctrl-z and kill -9'ing the last one, at least ctrl-c works now22:56
calamarican anyone help? I'm totally screwed now, can't even install packages due to this systemd garbage23:09
calamariit hangs every time23:09
fhfcalamari: systemd is quite basic now so i dont think it can be reinstalled right away, you can always override apt moanings be removing some files which store dep23:15
fhfi gtg now so mby others can help, gn folks23:15
calamarihere is a screenshot http://s24.postimg.org/bv8fodwvp/1444605589763.jpg23:21

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!