/srv/irclogs.ubuntu.com/2018/12/09/#ubuntu-installer.txt

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
Yukkurithe squashfs at some point seems to be corrupted23:14
Yukkuriand i have no other media23:15
Yukkurisome way to make a environment outsied a squashfs with installer, run that version of installer, using network repositories would be best.23:15
xnoxYukkuri, one can use mini.iso23:16
Yukkurii can't burn it anywhere23:16
Yukkurican i use it inside livecd somehow?23:17
Yukkurii can download and mount23:17
Yukkuriand then i woudl have to unpack squashfs of that mini.iso?23:17
Yukkuriright?23:17
Yukkuriand run what exactly in that filesystem?23:17
xnoxYukkuri, why burn, when one can dd to usb disk or a disk-drive to boot it?23:20
xnoxonce booted, it's all in ram....23:20
xnoxtry to e.g. kexec kernel + initrd of it, with the right kernel boot params (e.g. `install`)23:21
xnoxCarlFK, responded on the bug report23:21
Yukkurii don't have anouther usb drive23:21
Yukkurii can only have this usb i am using to boot into livecd23:22
Yukkurior not to boot at all23:22
Yukkuriand if i make mistake using same usb, i'll be out of usable OS23:22
Yukkurican't i just run binary of install in mini.iso ?23:23
xnoxYukkuri, you sound stressed. Can you start from the beginning, as to what you have, and what you are trying to do.....23:23
xnoxno, there is no binary of install to run of mini.iso, as it needs to be actually booted.23:23
Yukkurii am having just one bootalbe usb stick with partially written liveusb+installer of ubuntu23:23
CarlFKxnox: why -server vs -classic ?  I'll bet the classic is even bigger, so it won't fit.23:23
xnoxCarlFK, nope, smaller.23:24
Yukkuriit's squashfs is not entirely correct, installer fails after copying all files, probably during invocation of grub23:24
Yukkurior at last files it copies23:24
xnoxYukkuri, and where are you trying to install to?23:24
xnoxalso not sure what you mean by "liveusb+installer of ubuntu"23:24
Yukkurii have tried to different hard drives, one regular HDD, one SSD23:24
xnoxdid you simply use dd / Disks app to restore (dd) the desktop.iso to your usb stick you are booting from?23:25
xnoxone 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/dvd23:25
xnoxYukkuri, recreate your installer media.23:26
xnoxCarlFK, see the size posted in my comment.23:26
Yukkurihttp://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-desktop-amd64.iso was written with unetbotin under windows 7 to usb stick23:26
Yukkuriit apparently wasn't written completly23:26
Yukkurinow i don't have that win7 os23:26
Yukkurii don't have other PCs around23:26
Yukkurii don't have other usb sticks around23:26
Yukkurii can't re-create usb stick installation media without risking be out of that livecd either23:27
Yukkurii can however have full network access23:27
xnoxYukkuri, unetbotin is bad, don't use it.23:27
xnoxYukkuri, it will not create anything of good.23:27
Yukkuritoo late23:27
Yukkuriso now, what can i download in partially working livecd environment into fully correct chroot environmment, to perform actual installation?23:28
xnoxYukkuri, 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
xnoxYukkuri, and the kernel/initrd there would be these ones ->23:29
CarlFKxnox: you here for a while?  30 min or so so I can see if this works?23:29
Yukkurikeep in mind that usb stick version of squashfs is corrupt23:29
xnoxhttp://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/ ->23:30
xnoxthe initrd.gz and linux23:30
CarlFKxnox: you just described building hd-media ;)23:30
Yukkuriaha, i can download kernel image and initrd.gz for it. okay. but it would require some root to operate, right?23:30
xnoxYukkuri, 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
xnoxi assume you can drop things on the initrd.....23:31
xnoxor find any other computer to just dd the desktop iso onto the usb stick....23:31
Yukkuriyes, i can unpack, change and pack initrd back23:31
Yukkuribut where to get correct squashfs image?23:31
Yukkurican i borrow on from mini.iso?23:32
Yukkuriand after i drop all that onto usb stick, i am supposed to just use grub to boot from them?23:32
xnoxthere is no need for a squashfs23:33
Yukkurior does initrd.gz from link you have given already contains correct squashfs for minimal install?23:33
xnoxthat initrd+kernel is d-i based install, over the network, without any other files required23:33
Yukkurii see23:33
xnoxeverything will be downloaded.23:33
Yukkuriokay, i'll try23:33
Yukkurithanks23:33
xnoxmini.iso doesn't have any suqashfs either23:33
xnoxYukkuri, btw. https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows is the right way to create ubuntu usb sticks on windows23:33
xnoxthere are similar guides from there linked for Macos23:34
Yukkurianother catch: i would need pppoe+pptp to setup network23:34
Yukkurii can do that in livecd23:34
Yukkuribut would i be able to do that in minimal initrd?23:34
CarlFKxnox: 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
CarlFKxnox: ignore that23:34
xnoxCarlFK, you originally showed server-live-iso..... i showed server-iso.... now you are talking about desktop-iso......23:35
xnoxYukkuri, i think so, but i'm not sure.23:35
Yukkurican't i just run installer binary from unpacked initrd?23:35
xnoxYukkuri, i'd recommend you to create a better usb stick.....23:35
CarlFKxnox: yeah, ingore that.  I messed up just now23:35
Yukkurithat would be easier i think23:35
xnoxYukkuri, you can try to kexec it.23:35
Yukkurinot the kernel23:35
Yukkurithe installer23:35
xnoxkexec loads kernel + initrd.23:36
Yukkurii understand23:36
Yukkuribut i have kernel loaded already23:36
xnoxand executes init from the initrd.23:36
Yukkurican't i just run installer?23:36
xnoxbecause d-i installer is the initrd.23:36
xnoxthe init process inside it.23:36
Yukkuriso i can unpack initrd23:36
xnoxthere is no "binary"23:36
Yukkurii, got it23:36
xnoxand it expects to be the init, pid 123:36
Yukkuridarn23:37
Yukkurithis would all running instances of NetworkManager die, right?23:37
Yukkuriwould make*23:38
Yukkurican i get the installer as a regular userspace binary?23:38
Yukkurii mean, it is already in livecd, ubiquity gtk_ui23:40
Yukkuriwhere can i get one for chroot?23:41
CarlFKYukkuri: I don't think it exists23:44
CarlFKxnox: where did you get ubuntu-18.10-server-amd64.iso  it isn't listed on http://releases.ubuntu.com/cosmic/23:47
CarlFKwget -N http://releases.ubuntu.com/cosmic/ubuntu-18.10-server-amd64.iso 40423:48
CarlFKignore 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!