[23:14] (copy from main #ubuntu channel) hi, i am having a bit broken liveusb with ubuntu, where i can boot in GUI, setup network and make a chroot (if needed). Given that, can i get a non-broken version of ubuntu installer (via deb packages and custom repo maybe) in a chroot? [23:14] the squashfs at some point seems to be corrupted [23:15] and i have no other media [23:15] some way to make a environment outsied a squashfs with installer, run that version of installer, using network repositories would be best. [23:16] Yukkuri, one can use mini.iso [23:16] i can't burn it anywhere [23:17] can i use it inside livecd somehow? [23:17] i can download and mount [23:17] and then i woudl have to unpack squashfs of that mini.iso? [23:17] right? [23:17] and run what exactly in that filesystem? [23:20] Yukkuri, why burn, when one can dd to usb disk or a disk-drive to boot it? [23:20] once booted, it's all in ram.... [23:21] try to e.g. kexec kernel + initrd of it, with the right kernel boot params (e.g. `install`) [23:21] CarlFK, responded on the bug report [23:21] i don't have anouther usb drive [23:22] i can only have this usb i am using to boot into livecd [23:22] or not to boot at all [23:22] and if i make mistake using same usb, i'll be out of usable OS [23:23] can't i just run binary of install in mini.iso ? [23:23] Yukkuri, you sound stressed. Can you start from the beginning, as to what you have, and what you are trying to do..... [23:23] no, there is no binary of install to run of mini.iso, as it needs to be actually booted. [23:23] i am having just one bootalbe usb stick with partially written liveusb+installer of ubuntu [23:23] xnox: why -server vs -classic ? I'll bet the classic is even bigger, so it won't fit. [23:24] CarlFK, nope, smaller. [23:24] it's squashfs is not entirely correct, installer fails after copying all files, probably during invocation of grub [23:24] or at last files it copies [23:24] Yukkuri, and where are you trying to install to? [23:24] also not sure what you mean by "liveusb+installer of ubuntu" [23:24] i have tried to different hard drives, one regular HDD, one SSD [23:25] did you simply use dd / Disks app to restore (dd) the desktop.iso to your usb stick you are booting from? [23:25] one shouldn't need anything special at all to create bootable media out of our .iso files - just burn / dd / restore image onto USB or cdrom/dvd [23:26] Yukkuri, recreate your installer media. [23:26] CarlFK, see the size posted in my comment. [23:26] http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-desktop-amd64.iso was written with unetbotin under windows 7 to usb stick [23:26] it apparently wasn't written completly [23:26] now i don't have that win7 os [23:26] i don't have other PCs around [23:26] i don't have other usb sticks around [23:27] i can't re-create usb stick installation media without risking be out of that livecd either [23:27] i can however have full network access [23:27] Yukkuri, unetbotin is bad, don't use it. [23:27] Yukkuri, it will not create anything of good. [23:27] too late [23:28] so now, what can i download in partially working livecd environment into fully correct chroot environmment, to perform actual installation? [23:28] Yukkuri, so..... you should be able to grab kernel & initrd, put it on the usb stick, drop to grub, navigate the files on the usb stick to load kernel + initrd. [23:29] Yukkuri, and the kernel/initrd there would be these ones -> [23:29] xnox: you here for a while? 30 min or so so I can see if this works? [23:29] keep in mind that usb stick version of squashfs is corrupt [23:30] http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/ -> [23:30] the initrd.gz and linux [23:30] xnox: you just described building hd-media ;) [23:30] aha, i can download kernel image and initrd.gz for it. okay. but it would require some root to operate, right? [23:30] Yukkuri, at least doing that (dropping those two files on usb stick, and trying to boot them from grub) should be a safe / non-destructive operation. [23:31] i assume you can drop things on the initrd..... [23:31] or find any other computer to just dd the desktop iso onto the usb stick.... [23:31] yes, i can unpack, change and pack initrd back [23:31] but where to get correct squashfs image? [23:32] can i borrow on from mini.iso? [23:32] and after i drop all that onto usb stick, i am supposed to just use grub to boot from them? [23:33] there is no need for a squashfs [23:33] or does initrd.gz from link you have given already contains correct squashfs for minimal install? [23:33] that initrd+kernel is d-i based install, over the network, without any other files required [23:33] i see [23:33] everything will be downloaded. [23:33] okay, i'll try [23:33] thanks [23:33] mini.iso doesn't have any suqashfs either [23:33] Yukkuri, btw. https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows is the right way to create ubuntu usb sticks on windows [23:34] there are similar guides from there linked for Macos [23:34] another catch: i would need pppoe+pptp to setup network [23:34] i can do that in livecd [23:34] but would i be able to do that in minimal initrd? [23:34] xnox: wget http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-desktop-amd64.iso Length: 1953349632 (1.8G) [application/x-iso9660-image] [23:34] xnox: ignore that [23:35] CarlFK, you originally showed server-live-iso..... i showed server-iso.... now you are talking about desktop-iso...... [23:35] Yukkuri, i think so, but i'm not sure. [23:35] can't i just run installer binary from unpacked initrd? [23:35] Yukkuri, i'd recommend you to create a better usb stick..... [23:35] xnox: yeah, ingore that. I messed up just now [23:35] that would be easier i think [23:35] Yukkuri, you can try to kexec it. [23:35] not the kernel [23:35] the installer [23:36] kexec loads kernel + initrd. [23:36] i understand [23:36] but i have kernel loaded already [23:36] and executes init from the initrd. [23:36] can't i just run installer? [23:36] because d-i installer is the initrd. [23:36] the init process inside it. [23:36] so i can unpack initrd [23:36] there is no "binary" [23:36] i, got it [23:36] and it expects to be the init, pid 1 [23:37] darn [23:37] this would all running instances of NetworkManager die, right? [23:38] would make* [23:38] can i get the installer as a regular userspace binary? [23:40] i mean, it is already in livecd, ubiquity gtk_ui [23:41] where can i get one for chroot? [23:44] Yukkuri: I don't think it exists [23:47] xnox: where did you get ubuntu-18.10-server-amd64.iso it isn't listed on http://releases.ubuntu.com/cosmic/ [23:48] wget -N http://releases.ubuntu.com/cosmic/ubuntu-18.10-server-amd64.iso 404 [23:49] ignore that too - found it http://cdimage.ubuntu.com/releases/18.10/release/