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