The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 14:18:54

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,962  

Use refracta2usb with netinstall iso

refracta2usb is designed to work with live-isos to create a multiboot live-usb. It's not designed to work with the installer isos, but with a little bit of manual intervention you can bypass this limitation. I can't blame it on upstream decisions because I'm part of the upstream in this case.

Use the latest version of refracta2usb available here -
https://get.refracta.org/files/tools/re … ~4_all.deb
or here -
https://exegnulinux.net/files/refracta2usb/

1. You should start with a usb that already has one live system on it and was prepared using refracta2usb. I tried it with just the netinstall iso and it only worked for legacy bios boot. It didn't work with uefi boot and I did not investigate further.
See the fine documentation that comes with refracta2usb for basic instructions.
(Hint: click on Help inside the app or look in /usr/lib/refracta2usb/help_r2u.txt)

PREPARE THE USB STICK
Start refracta2usb, select the usb device and the select ISO_1 from the menu.
The contents of the iso file will be put into a directory on the usb. Give it a name.
Example name: freia-netinstall
Select the iso
Select the boot menu from the iso (for reference): /boot/isolinux/menu.cfg
Select the kernel: /boot/isolinux/linux
Select the initrd: /boot/isolinux/initrd.gz
Additional boot options: none here
Isolinux boot menu opens in text editor.
Remove live-boot and live-config options.  (i.e. boot=live and probably everything on the line after that.)
Add "priority=low" if you want Expert install.

Example:

label freia-netinstall
	menu label freia-netinstall
    kernel /freia-netinstall/boot/isolinux/linux 
    append initrd=/freia-netinstall/boot/isolinux/initrd.gz priority=low vga=788 --- 

Save and close the editor.

Grub boot menu opens in text editor. Do similar edits.

Example:

menuentry "freia-netinstall " {
    set gfxpayload=keep
    linux   /freia-netinstall/boot/isolinux/linux priority=low ---   
    initrd  /freia-netinstall/boot/isolinux/initrd.gz
}

Save and close the editor.
When the refracta2usb main menu comes up, you can Exit.

USE THE NETINSTALL
To use the netinstall iso, boot the usb stick and select the netinstall
from the boot menu. The installer will start and ask about locales and
keyboard, then it will fail because it can't find the cdrom.
Continue to get to the installer menu and scroll down to select
"Execute a shell"

In the shell, mount the first partition of the usb stick. And then
bind mount the netinstall directory on the stick to /cdrom.

Example Be sure to name the correct device! /dev/sdb1 is an Example:
You can run 'fdisk -l' in the shell to make sure the usb is the device you think it is.

mount /dev/sdb1 /mnt
mount --bind /mnt/freia-netinstall /cdrom
exit

This brings you back to the installer which should return to the menu.
Select "Detect and mount installation media"
and proceed with the installation.

Offline

#2 Yesterday 22:58:07

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,723  

Re: Use refracta2usb with netinstall iso

Does it work if you make the ISO a partition on the USB?

I.e. not a file... that you create an additional, separate partition on the USB, of the same size as the ISO and dd the ISO onto that partition.

Perhaps you also need to have kernel and initrd available in the other filesystem, for that boot loader to work, but the installer will look for the ISO on partitions, not as a file.

Offline

#3 Today 00:41:55

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,962  

Re: Use refracta2usb with netinstall iso

Wow, that works. I didn't change anything in the existing setup, but I did dd the iso to the second partition. Same boot menu entry works and it made it past the point where it detects the installation media.

Offline

#4 Today 02:23:23

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,723  

Re: Use refracta2usb with netinstall iso

Yes  the installer looks for the media as a disk or a partition; it does not mount filesystems and look through those. And it of course does the same regardless of where the boot kernel + initrd have been loaded from ... the installer doesn't "know" where the running software has come from smile

Offline

Board footer