From 8f21e9611ec94541a4ad8572a4c298a2dfd874bc Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 16 Mar 2012 02:08:21 -0300 Subject: [archiso] Update README Make build steps much more simply (remove chroot build is not really needed now). Signed-off-by: Gerardo Exequiel Pozzi --- README | 96 +++++++++++++++++------------------------------------------------- 1 file changed, 25 insertions(+), 71 deletions(-) diff --git a/README b/README index 4bab18d..9ee367e 100644 --- a/README +++ b/README @@ -150,7 +150,6 @@ if nothing is specified on command line. *** Build requirements ** For mkarchiso script needs these packages (build host): - + devtools for mkarchroot + squashfs-tools for mksquashfs + libisoburn for xorriso @@ -223,34 +222,15 @@ When make your custom boot-pendrive, you need to copy /arch directory to it. *** Building the most basic Arch Linux live media. (configs/baseline) -* Install devtools if needed, mkarchroot needs it - [host] # pacman -S devtools --needed +* Install needed packages. + # pacman -S git make squashfs-tools libisoburn --needed -* Create a base chroot to work on it. - (prefix with linux32 if you want to build a 32 bits enviroment under 64 bits) - [host] # mkarchroot /tmp/chroot base - -* Install archiso on chroot (needs git and make) - [host] # pacman -S git make --needed - [host] # git clone git://projects.archlinux.org/archiso.git - [host] # make -C archiso/archiso DESTDIR=/tmp/chroot install - -* Enter to chroot (prefix with linux32 if needed). - [host] # mkarchroot -d -r bash /tmp/chroot - -* Setup a mirror. - [chroot] # echo 'Server = MIRROR/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist - -* Install aditional packages needed for mkarchiso. - [chroot] # pacman -S devtools squashfs-tools libisoburn +* Install archiso. + # git clone git://projects.archlinux.org/archiso.git + # make -C archiso/archiso install * Build a basic iso. - [chroot] # cp -r /usr/share/archiso/configs/baseline /tmp - [chroot] # cd /tmp/baseline - [chroot] # ./build.sh - -* Exit from chroot. - [chroot] # exit + # /usr/share/archiso/configs/baseline/build.sh Note: If you want to customize, just see the configs/releng directory which is used to build official images with much more things. @@ -259,56 +239,30 @@ used to build official images with much more things. *** Building official Arch Linux live media. (configs/releng) -Note: These steps should be done with 64 bits support. - -* Prepare a 32 bit chroot enviroment. - - [host64] # linux32 mkarchroot /tmp/chroot32 base - [host64] # linux32 mkarchroot -r bash /tmp/chroot32 - [chroot32] # echo 'Server = MIRROR/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist - [chroot32] # pacman -S devtools squashfs-tools libisoburn - [chroot32] # exit - -* Prepare a 64 bits chroot enviroment. - - [host64] # mkarchroot /tmp/chroot64 base - [host64] # mkarchroot -r bash /tmp/chroot64 - [chroot64] # echo 'Server = MIRROR/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist - [chroot64] # pacman -S devtools squashfs-tools libisoburn - [chroot64] # exit - -* Install archiso on both chroots. - - [host64] # git clone git://projects.archlinux.org/archiso.git - [host64] # make -C archiso/archiso DESTDIR=/tmp/chroot32 install - [host64] # make -C archiso/archiso DESTDIR=/tmp/chroot64 install +Note: These steps should be done in 64-bit and build.sh should be executed +on the same build directory or use -w option. -* Create a shared /tmp directory between two chroots for working. +* Install needed packages. + # pacman -S git make squashfs-tools libisoburn --needed - [host64] # mkdir /tmp/shared - [host64] # chmod 1777 /tmp/shared - [host64] # mount --bind /tmp/shared /tmp/chroot32/tmp - [host64] # mount --bind /tmp/shared /tmp/chroot64/tmp +* Install archiso. + # git clone git://projects.archlinux.org/archiso.git + # make -C archiso/archiso install -* Enter 32 bits chroot enviroment then build core and netinstall single images. +* Build netinstall and core images (32-bit) + # linux32 /usr/share/archiso/configs/releng/build.sh build single all - [host32] # linux32 mkarchroot -d -r bash /tmp/chroot32 - [chroot32] # cp -r /usr/share/archiso/configs/releng /tmp - [chroot32] # cd /tmp/releng - [chroot32] # ./build.sh build single all - [chroot32] # ./build.sh purge single # optional step +* Delete uneeded files (32-bit) + # linux32 /usr/share/archiso/configs/releng/build.sh purge single -* Enter 64 bits chroot enviroment then build core and netinstall single images. +* Build netinstall and core images (64-bit) + # /usr/share/archiso/configs/releng/build.sh build single all - [host64] # mkarchroot -d -r bash /tmp/chroot64 - [chroot64] # cp -r /usr/share/archiso/configs/releng /tmp - [chroot64] # cd /tmp/releng - [chroot64] # ./build.sh build single all - [chroot64] # ./build.sh purge single # optional step +* Delete uneeded files (64-bit) + # /usr/share/archiso/configs/releng/build.sh purge single -* Build core and netinstall dual images from any of the chroot enviroments. +* Build netinstall and core images (dual 32/64 bit) + # /usr/share/archiso/configs/releng/build.sh build dual all - [host64] # mkarchroot -r bash /tmp/chroot64 - [chroot64] # cd /tmp/releng - [chroot64] # ./build.sh build dual all - [chroot64] # ./build.sh purge dual # optional step +* Delete uneeded files (dual 32/64 bit) + # /usr/share/archiso/configs/releng/build.sh purge dual -- cgit v1.2.3-70-g09d2