Talk:Archiso

From ArchWiki
Revision as of 13:46, 1 July 2013 by Jasper1984 (Talk | contribs) (Estimating size? Starting over?: new section)

Jump to: navigation, search

Archiso doesn't work on non stock kernel

I've been having on and off issues when building ISOs with archiso and the other day when I was working on one I did a pacman -Syu before working but didn't reboot. I was running on the stock kernel at that point because the linux-ck kernel had not updated yet. My ISO built fine. Later that day I rebooted and was now running on the updated linux-ck kernel and suddenly the build process would simply die without any errors, even with the -v option. Right after installing all the custom packages, a dd output appears and then a mkfs.vfat version message appears and that's where it dies. Rebooting back to the stock arch kernel fixed the issue. I'm guessing it has something to do with hardcoded names or something like that in the build scripts.

Is this normal behaviour? I don't mind using the stock kernel on the ISOs I build but I figured I'd at least be able to build them on a different one.

On that note, is it possible to use a kernel other than the stock one within the ISOs we build? Biltong (talk) Sun May 6 2012, 21:47 SAST

Installation

If you wish to install the Archiso you created -as it is- on the machine where you booted it, there are several ways to do this, but either way we're following the Beginners' Guide mostly.

1: To install it as if it were an ArchLinux release, simply follow the Beginners' Guide. Good luck.

2: To install it without an internet connection or if you don't want to download every packages you want again:

First of all read the Beginners' Guide, because we'll be skipping some parts. Remember to create the partitions, format them, manage labels and then mount them while you're booted into Archiso.

Note: The following example assumes only one partition which will be used as /root (which includes /home).
# mkdir /mnt
# mount /dev/sdx /mnt
Note: Don't mix up /dev/sdx (/dev/sda1 or /dev/sdb1) with other partitions.
Note: You can create /mnt/home and mount that as well if you wish, so that fstab will detect it automatically.

And now we'll be installing the Beginners' Guide#Install_the_base_system, but instead of downloading it, we'll just copy everything over with rsync: Full System Backup with rsync to the hard drive:

# rsync -aAXv /* /mnt --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}
Note: If you plan on backing up your system somewhere other than /mnt or /media, don't forget to add it to the list, to avoid an infinite loop.

Afterwards simply follow the Beginners' Guide#Generate_an_fstab to finish the installation and customization. With an internet connection and with that guide you'll finish real quick.

If you don't have an internet connection (like me), I had problems with the following: Beginners' Guide#Create_an_initial_ramdisk_environment This happened because as far as I know, this is a live environment, therefore the -linux- package is not located under /boot. I have bypassed this by simply downloading the -linux- package on another computer, and then installing it with pacman -U linux-0.0.0.0-xyxy.pkg.tar.xz . After this, the -mkinitcpio -p linux- works as it should. (or if you have an internet connection: -pacman -S linux- and then -mkinitcpio -p linux- just in case)

Same thing with grub. grub-bios. Get the package, install it, and then keep following the guide.

Sidenote:

Re-initializing pacman can be important, though I'm not sure. Pacman-key#Initializing_the_keyring

Consider trying out -Archboot- GUI for installation: FAQ#Q.29_Arch_needs_an_installer._Maybe_a_GUI_installer

Estimating size? Starting over?

How do you best estimate the size?Jasper1984 (talk) 13:46, 1 July 2013 (UTC)

How do you start over? Suppose just take `etc/`, delete the `releng/` directory recopy, put stuff back.Jasper1984 (talk) 13:46, 1 July 2013 (UTC)