You are not logged in.

#1 2010-01-12 05:29:00

sakrhass
Member
Registered: 2010-01-11
Posts: 11

My first attempt to create livecd using Archiso

I just want to start by saying that I have searched the forum

I managed to create a archlinux liveiso consisting of  archlinux core Xorg and fluxbox following the archiso article in the wiki.
However I have one issue though when I run /arch/setup it only installs the base and base-devel packages not everything am I doing something wrong as I would like to install the whole contents of the cd.

any assistance will be appreciated.

Cheers

Offline

#2 2010-01-12 14:09:41

voyciz
Member
Registered: 2010-01-07
Posts: 9

Re: My first attempt to create livecd using Archiso

Mount the CD and
pacman -U PKG

Offline

#3 2010-01-13 01:46:19

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Thank voyciz for your reply, I will try it and I'll let you know the result

Offline

#4 2010-01-14 11:22:46

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

I have tried to start the installation and then I had another issue Grub won't install, I found out that the guys at archiso stopped supporting Grub instead they're using isolinux..
When I type #make my-arch I get cat: Syslinux: No Such file or Director hence I have installed all required packages.

any ideas

Offline

#5 2010-01-14 22:28:12

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

I did update the wiki a little while ago to reflect the changes of grub and isolinux. Did you not notice from the wiki? I'll make it clearer on there.
Also, I saw I made a bug when updating the wiki which will happen when catting the Makefile. Please paste the Makefile again and tell me your results.

Offline

#6 2010-01-15 09:07:38

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Hi Svenstaro I had a look at the wiki after you have updated it, that's how I found that the Grub part has been taken out here is my Makefile

#### Change these settings to modify how this ISO is built.
#  The directory that you'll be using for the actual build process.
WORKDIR=work
#  A list of packages to install, either space separated in a string or line separated in a file. Can include groups.
PACKAGES="$(shell cat packages.list syslinux)"
# The name of our ISO. Does not specify the architecture!
NAME=my-arch
# Version will be appended to the ISO.
VER=1.00
# Kernel version. You'll need this.
KVER=2.6.32-ARCH
# Architecture will also be appended to the ISO name.
ARCH?=$(shell uname -m)
# Current working directory
PWD:=$(shell pwd)
# This is going to be the full name the final iso/img will carry
FULLNAME="$(PWD)"/$(NAME)-$(VER)-$(ARCH)

# Default make instruction to build everything.
all: my-arch

# The following will first run the base-fs routine before creating the final iso image.
my-arch: base-fs
    mkarchiso -p syslinux iso "$(WORKDIR)" "$(FULLNAME)".iso

# This is the main rule for make the working filesystem. It will run routines from left to right. 
# Thus, root-image is called first and syslinux is called last.
base-fs: root-image boot-files initcpio overlay iso-mounts syslinux

# The root-image routine is always executed first. 
# It only downloads and installs all packages into the $WORKDIR, giving you a basic system to use as a base.
root-image: "$(WORKDIR)"/root-image/.arch-chroot
"$(WORKDIR)"/root-image/.arch-chroot:
root-image:
    mkarchiso -p $(PACKAGES) create "$(WORKDIR)"

# Rule for make /boot
boot-files: root-image
    cp -r "$(WORKDIR)"/root-image/boot "$(WORKDIR)"/iso/
    cp -r boot-files/* "$(WORKDIR)"/iso/boot/

# Rules for initcpio images
initcpio: "$(WORKDIR)"/iso/boot/archiso.img
"$(WORKDIR)"/iso/boot/archiso.img: mkinitcpio.conf "$(WORKDIR)"/root-image/.arch-chroot
    mkdir -p "$(WORKDIR)"/iso/boot
    mkinitcpio -c ./mkinitcpio.conf -b "$(WORKDIR)"/root-image -k $(KVER) -g $@

# See: Overlay
overlay:
    mkdir -p "$(WORKDIR)"/overlay/etc/pacman.d
    cp -r overlay "$(WORKDIR)"/
    wget -O "$(WORKDIR)"/overlay/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/$(ARCH)/all/
    sed -i "s/#Server/Server/g" "$(WORKDIR)"/overlay/etc/pacman.d/mirrorlist

# Rule to process isomounts file.
iso-mounts: "$(WORKDIR)"/isomounts
"$(WORKDIR)"/isomounts: isomounts root-image
    sed "s|@ARCH@|$(ARCH)|g" isomounts > $@

# This routine is always executed just before generating the actual image. 
syslinux: root-image
    mkdir -p $(WORKDIR)/iso/boot/isolinux
    cp $(WORKDIR)/root-image/usr/lib/syslinux/*.c32 $(WORKDIR)/iso/boot/isolinux/
    cp $(WORKDIR)/root-image/usr/lib/syslinux/isolinux.bin $(WORKDIR)/iso/boot/isolinux/

# In case "make clean" is called, the following routine gets rid of all files created by this Makefile.
clean:
    rm -rf "$(WORKDIR)" "$(FULLNAME)".img "$(FULLNAME)".iso

.PHONY: all my-arch
.PHONY: base-fs
.PHONY: root-image boot-files initcpio overlay iso-mounts
.PHONY: syslinux
.PHONY: clean

Last edited by sakrhass (2010-01-16 08:24:22)

Offline

#7 2010-01-15 13:14:16

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

The bug is here:
PACKAGES="$(shell cat packages.list syslinux)"
needs to be:
PACKAGES="$(shell cat packages.list) syslinux"
and I already corrected on the wiki yesterday.

Offline

#8 2010-01-15 19:27:45

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: My first attempt to create livecd using Archiso

Use Larch instead.


/me wants you to detele this account... please delete it.

Offline

#9 2010-01-15 19:48:04

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

How does Larch compare to Archiso?

Offline

#10 2010-01-16 08:23:49

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Sorry Svenstaro I spelled your nick name wrong, I'll do the change and create a new archiso I'll let you know the result.

apollokk wrote:

Use Larch instead.

I tried larch I get error 9p.ko owned by 2.6.32 kernel hence my kernel is 2.6.32-ARCH and found archiso is flexible that's my personnel opinion

Offline

#11 2010-01-16 11:47:53

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Svenstaro, I managed to generate my-arch-1.00.iso and it booted ok, when I typed /arch/setup and select package source from CD I got this "packages directory /src/core/pkg is missing " the iso contains the following
<boot> dir
overlay.sqfs
root-image.sqfs
I am missing something pkg

Offline

#12 2010-01-16 15:17:35

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

Well of course, there are absolutely no packages for installation on your bare iso. Take a look at the included scripts for the official installation medium. Everything works as expected smile.

Offline

#13 2010-01-17 10:35:46

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Ok all done core-pkg.sqfs, Booted cd with no problems at all, I tried to install it to HDD  when it comes to select install boatloader I select Grub then I receive this "error installing grub see /dev/tty7 for output."

grub> device (hd0,0) /dev/hdc
grub> root (hd0,0)
       filesystem type is ext2fs, partition type 0x83
grup> setup (hd0,0)
          checking if "/boot/grub/stage1" exist... no
          checking if "/grub/stage1" exist... no
error 15:file not found
grub>quit

Offline

#14 2010-01-17 15:30:13

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

For the installation medium you also need grub stuff in your boot-files directory. Just have a look at the official installation medium scripts, everything should be apparent from those.

Offline

#15 2010-01-18 09:30:17

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Svenstaro I could not be more grateful and thankful to your assistance

I have booth isolinux directory and grub directory in the boot-files directory
That's why I am a bit puzzled


boot-files--|---<isolinux>|_ _
                |                        isolinux.cfg
                |                        boot.msg
                |                        help.msg
                |
                |__<grub>|_ _ menu.lst

Last edited by sakrhass (2010-01-18 11:09:23)

Offline

#16 2010-01-18 16:51:14

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

Woah, sorry I just realized I gave crap info. Of course you will only need one boot loader, not two, for the medium itself. Thus, boot-files/ only needs to contain isolinux stuff.
However, you will need to install the grub package on the medium. It appears to be installed since you can call it up but it does not find its files. Mh. Can you try to locate them manually while in the booted live environment?
This looks like a bug we should catch.

Offline

#17 2010-01-19 11:29:10

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

I booted my  live archiso cd and found all grub files are in /usr/lib/grub

stage1
stage2
e2fs_stage1_5
etc..

aren't these files you wanted me to locate?

Cheers

Offline

#18 2010-01-19 12:47:28

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

Even with those files in place grub doesn't find them? Mhh..
We are talking about within the AIF, right? Can you try to install grub manually from the live environment without the installation routine?
If grub only breaks in AIF, please file a bug for AIF as it might be a compatibility problem with recent changes to archiso.

Offline

#19 2010-01-22 09:35:54

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

Sorry for the delay reponse,

Yes we're talking AIF here and I managed to install from grub from live archiso,however as a thought I tried to add the following to my Makefile
cp $(WORKDIR)/root-image/usr/lib/grub/i386-pc/* $(WORKDIR)/iso/boot/grub/
but I received this error message whilst executing make all
missing separator (did you mean TAB instead of 8 spaces?).stop

cheers

Offline

#20 2010-01-22 11:21:20

sakrhass
Member
Registered: 2010-01-11
Posts: 11

Re: My first attempt to create livecd using Archiso

sad

Last edited by sakrhass (2010-01-22 13:57:42)

Offline

#21 2010-01-22 18:02:17

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: My first attempt to create livecd using Archiso

It's rather obvious isn't it? You used a mixture of spaces and tabs in the Makefile. You will need to use real tabs. Update this thread on the Grub issue and if it even is an issue.

Offline

Board footer

Powered by FluxBB