aboutsummaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
Commit message (Collapse)AuthorAgeFilesLines
* [archiso] Avoid journald log to /var/log/journalGerardo Exequiel Pozzi2012-10-241-0/+4
| | | | | | This was recently enabled in [systemd] package. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Remove uneeded cleanup /tmpGerardo Exequiel Pozzi2012-10-241-4/+0
| | | | | | /tmp is mounted as tmpfs since archiso implements own chroot code. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Remove old code (now redundant)Gerardo Exequiel Pozzi2012-10-241-4/+0
| | | | | | /etc/mtab symlink is part of [filesystem] since long time Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Replace rsync with cpGerardo Exequiel Pozzi2012-08-011-1/+1
| | | | | | It does not make sense, since filesystem inside the imege is re-formated. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add btrfs support as filesystem for *.fs.sfsGerardo Exequiel Pozzi2012-07-201-1/+4
| | | | | | Implements FS#30378 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: improve info messagesGerardo Exequiel Pozzi2012-05-291-5/+8
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: add new pkglist command.Gerardo Exequiel Pozzi2012-04-091-0/+20
| | | | | | | | This command makes a list of installed packages on root-image, on <ISO>/$archisobasedir/pkglist.$arch.txt with the format <repo>/<package>-<version> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: optionally add EFI "El Torito" boot support.Gerardo Exequiel Pozzi2012-04-011-0/+8
| | | | | | | | | If EFI/archiso/efiboot.img exists then an alternative "El Torito" boot image is added to the ISO image compatible for EFI. This image is a FAT filesystem, that is interpreted by EFI as ESP (EFI System Partition). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Re-order and use long xorrisofs options.Gerardo Exequiel Pozzi2012-04-011-7/+10
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Set a safe locale to CGerardo Exequiel Pozzi2012-03-171-0/+2
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Improve help message of mkarchisoGerardo Exequiel Pozzi2012-03-171-4/+8
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Implement own chroot functions in mkarchisoGerardo Exequiel Pozzi2012-03-161-17/+86
| | | | | | | | | | | | | * Remove devtools dependency. * Better control over what files are touched inside chroot (root-image). Now: NONE :) * Two new commands: + init: To install {base} group and other needed packages (syslinux for now) + run: If we want to run some command inside chroot (mkinitcpio, locale-gen, useradd, etc etc...) * Renamed command: "created" to "install", says much better what does. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Cleanup: Remove *.fs support.Gerardo Exequiel Pozzi2011-12-031-15/+5
| | | | | | | | | | This was useful to me during development of dm-snapshot support to create very quickly isos without wating for SquashFS compression. Is time to remove this, I think the is no practical usage, and make the code a bit more simple. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Checksum only aitab and *.sfs (per architecture)Gerardo Exequiel Pozzi2011-11-281-7/+17
| | | | | | | | | | | | | | | | | | | | We are currently checksuming all files inside $archisobasedir (aitab, *sfs, kernel/initramfs and boot/syslinux related files) this is stored in one file only. Its works good for now, but I think we only need to checksum only aitab and *.sfs if they are needed. Currently if you boot a dual-iso in i686, also checksum is done for *.sfs of x86_64. Not a big issue, this just take a bit more time. The real issue is when booting via PXE with HTTP/FTP methods, since they download only aitab and needed *.sfs files, can not use directly the only one file where checksums are stored. This patch does: (1) Do not checksum syslinux related files, anyway you are already reach initramfs stage. (2) Do not checksum kernel/initramfs files, for the same as (1) (3) Two checksum.${arch}.md5 for each i686 and x86_64 for only aitab and *.sfs. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] disable progress bar in mksquashfsGerardo Exequiel Pozzi2011-10-141-2/+2
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Create /etc/mtab as symlink.Gerardo Exequiel Pozzi2011-10-031-2/+2
| | | | | | This is now supported since util-linux pkg enable it. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Switch from cdrkit to libisoburnGerardo Exequiel Pozzi2011-08-291-5/+7
| | | | | | | | | | * Preparing terrain for UEFI support. * Also make isohybrid hack in one step. * Removed UDF layer, since xorriso does not support it. * Removed unsupported options by xorriso (-uid/-gid/-allow-limited-size) * Removed option already default in xorriso (-input-charset utf-8) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Use -w <work_dir> instead of cmd <work>, add -o <out_dir>Gerardo Exequiel Pozzi2011-08-291-17/+20
| | | | | | | | | | | | | | Default (if not specified) -w work -o out. -o <out_dir> is only used by 'iso' command. Adjust build.sh of releng and baseline profile to reflect this change. <project> - work <- $work_dir - out <- $out_dir Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Avoid regenerate checksum -> .iso.Gerardo Exequiel Pozzi2011-08-261-23/+25
| | | | | | Also put _is_directory_changed() inside 'if' avoiding premature execution if it returns non-zero. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add checksum= boot paramGerardo Exequiel Pozzi2011-08-151-0/+17
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Delete etc/mtab on _cleanup stepGerardo Exequiel Pozzi2011-07-091-0/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Ensure that there is no .fs before create itGerardo Exequiel Pozzi2011-07-091-0/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mark installed packages, after installing it, not beforeGerardo Exequiel Pozzi2011-07-091-2/+3
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Use dm-snapshot instead of aufs2 (A.K.A. "The Big Commit")Gerardo Exequiel Pozzi2011-06-181-185/+370
| | | | | | | | | | | | | | | | | | | | | * Use device mapper + snapshot module, instead union layer filesystem. * A block-level approach vs vfs-level. * No more unofficial (Linux) things. * More memory is needed. * Refactor mkarchiso. * Refactor hooks/archiso. * Fix install/archiso_pxe_nbd (due recent change in mkinitcpio-0.6.15 on checked_modules()/all_modules()) [Thanks Dave for the improved workaround] * New configs/releng to build official images. * Works with a Bash script instead of Makefile. (better control and easy to maintain) * Remove configs/syslinux-iso. * Remove archiso2dual script. Integrate functionality in configs/releng. * New configs/baseline to build the most basic live medium or use as template. * New README (draft). [Thanks Dieter for fixing english grammar] Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Set default SquashFS compressor to XZGerardo Exequiel Pozzi2011-04-111-3/+3
| | | | | | Also change all references from lzma to xz format. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Fix tabs/spaces in mkarchisoGerardo Exequiel Pozzi2010-12-081-4/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Unify scheme of sed replacements.Gerardo Exequiel Pozzi2010-12-071-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Place *.sqfs images in /${install_dir}/${arch}/Gerardo Exequiel Pozzi2010-12-071-3/+5
| | | | | | Unify with dir layout of -dual images. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add -D <install_dir> option to mkarchisoGerardo Exequiel Pozzi2010-11-301-34/+13
| | | | | | | | | | | | | | -D <install_dir> allow to select install directory on target media defaults to "arch". There is a new %INSTALL_DIR% macro for syslinux.cfg. This is how ISO will look now: /syslinux only syslinux related files (syslinux.cfg, *.c32, etc) /arch/ isomounts + *.sqfs images /arch/boot/ Linux + initramfs + Memtest86+ + other files for early boot stage Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add support for squashfs compression typesGerardo Exequiel Pozzi2010-10-181-3/+9
| | | | | | | Add a note about supported status in Linux versions. Needs squashfs-tools-4.1 (now on extra). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Do not copy host configuration to root-imageGerardo Exequiel Pozzi2010-09-161-2/+2
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Rename all occurrences of isolinux to syslinuxThomas Bächler2010-07-221-3/+3
| | | | | | | | | | | | The name of the bootloader is syslinux, while isolinux is just one of many components. isolinux.bin now also accepts syslinux.cfg as a configuration file name (as do all other loaders). Thus, rename the isolinux/ folder to syslinux/, and rename isolinux.cfg to syslinux.cfg. The only occurrence of 'isolinux' is now the actual loader file 'isolinux.bin'. This makes the transition from isolinux to the other syslinux loaders easier when remastering the ISO onto another medium.
* [archiso] Rewrite cleanup step in mkarchisoGerardo Exequiel Pozzi2010-06-301-7/+12
| | | | | | | | | Currently works partially since in bash "*" is not expanded. Old dirs removed, always empty dirs removed from list. Also cleanup sync databases from pacman 3.4.0, avoiding problems with pacman -Sy since "sync" directory is deleted. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Revert back isohybrid offset to default setting.Gerardo Exequiel Pozzi2010-03-161-2/+2
| | | | | | | | | | | | | | | | | | | This revert back the commit 991a5c69. This causes more problems than solving (fixing the warning issue in parted) With the default offset 0: * makes posibble to create others extra partitions on USB key and use them inside the live enviroment. * makes posible to use /dev/disk/by-label/ symlinks. archiso_early hook, can be removed. Note: archboot also uses the default offset 0. More info at: http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000912.html http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000890.html Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Fixed offset of partition on isoGerardo Exequiel Pozzi2010-02-081-1/+1
| | | | | | | | Split from commit 00dda7d4 from Svenstaro repo: changed -offset for mkarchiso from default 0 to 1 so that the other partition on the usb device can still be edited after dd'ing to it Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Fix indentation of previus commitGerardo Exequiel Pozzi2009-12-041-3/+3
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Abort mkarchiso if isolinux.cfg is not found.Gerardo Exequiel Pozzi2009-12-021-2/+5
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Removed unused gen_grubscan script and grub reference in mkarchisoGerardo Exequiel Pozzi2009-12-011-1/+0
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Use 11 chars for fslabel for VFAT compatibilityGerardo Exequiel Pozzi2009-12-011-1/+1
| | | | | | | | Also use ARCH_YYYYMM format instead of random chars, removing pwgen dep. Closing FS#14919. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* More removal of old bootloader supportAaron Griffin2009-11-301-16/+4
| | | | | | | Only support syslinux now. Grub and other things can still be managed manually by running mkisofs manually. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Removed pwgen dependencySven-Hendrik Haase2009-11-301-1/+1
|
* mkarchiso: cleaned up to use isohybrid onlySven-Hendrik Haase2009-11-301-74/+2
|
* mkarchiso: cleanup opts, user dir creationSven-Hendrik Haase2009-11-231-9/+23
| | | | | | | | | | | | | | | As in title, this patch cleans up opt flags that exist for no reason and adds additional flags to modify the disk meta info which would otherwise be hardcoded. I wasn't quite sure about the user directory part but it doesn't seem like a good idea to put that part into the script and therefore I commented it out. It would probably interfere with rc.local scripts that take care of skel copying. I replaced the part after the TODO with a safe guard to make sure that people who are not aware of the changes will not be caught by surprise. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Silent modprobe loop loading in mkarchisoGerardo Exequiel Pozzi2009-11-191-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Avoid force/rebuild of squashfs images if already updated.Gerardo Exequiel Pozzi2009-11-091-5/+5
| | | | | | | | | | | | Check if there are any modification of files/directories inside the target directory for squashfs image. Implements in some way this item in TODO: * Add 'needsupdate' function to check if a squashfs image in the iso dir is up to date, if so, skip it; else rebuild it. No more need for the -f flag Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Fix how mkarchiso makes usb imageGerardo Exequiel Pozzi2009-10-211-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation in how partition is created for ext2 img it looks a bit bad. This patch makes the partition in more standarized way, respecting cylinder alignement: * The size of resulting image will be in cylinder multiple ~8MB. * Use fdisk instead of sfdisk (sfdisk write some bad information) * Make the result image in one pass, instead of concatenating. Also the advantage is that with this can add another partitions without any issues in the usb-flash-drive with this .img. For example of current situation: qemu-system-x86_64 -hda archlinux-avr.toolchain.img -serial stdio --------------------------------------------------------------------- [root@avr ~]# fdisk /dev/sda Command (m for help): p Disk /dev/sda: 223 MB, 223974400 bytes 59 heads, 41 sectors/track, 180 cylinders Units = cylinders of 2419 * 512 = 1238528 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 * 1 181 218693+ 83 Linux Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 1, 1) logical=(0, 1, 23) Partition 1 has different physical/logical endings: phys=(27, 58, 41) logical=(180, 49, 21) Command (m for help): v Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 1, 1) logical=(0, 1, 23) Partition 1 has different physical/logical endings: phys=(27, 58, 41) logical=(180, 49, 21) Partition 1: previous sectors 437449 disagrees with total 67731 62 unallocated 512-byte sectors Command (m for help): --------------------------------------------------------------------- qemu-system-x86_64 -hda archlinux-avr.toolchain-fix.img -serial stdio --------------------------------------------------------------------- [root@avr ~]# fdisk /dev/sda Command (m for help): p Disk /dev/sda: 230 MB, 230307840 bytes 255 heads, 63 sectors/track, 28 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x5c94ca4f Device Boot Start End Blocks Id System /dev/sda1 * 1 28 224878+ 83 Linux Command (m for help): v 62 unallocated 512-byte sectors --------------------------------------------------------------------- Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* Use a label when generating the image and pass it to the commandlineGerhard Brauer2009-07-271-1/+6
| | | | | | | | | | | This will generate a label ARCHISO_$randomstring using the pwgen utility and add this label to the kernel command line. A new label will be generated for each image, so it can be uniquely identified. Patch from brain0 <thomas@archlinux.org> Signed-off-by: Gerhard Brauer <gerbra@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Enabled -C option in mkarchisoGerhard Brauer2009-07-271-1/+1
| | | | | | | This flag allows to specify a own pacman.conf using during mkarchiso. Signed-off-by: Gerhard Brauer <gerbra@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix mkisofs quiet parameterGerhard Brauer2009-06-291-1/+1
| | | | | | Option syntax for quiet mode in mkisofs has changed Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix typos, formatting, and vague language where possible.Loui Chang2009-01-261-2/+2
| | | | | | Signed-off-by: Loui Chang <louipc.ist@gmail.com> [Fixed menu.lst: LiveCD -> Live CD -aaron] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>