aboutsummaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
Commit message (Collapse)AuthorAgeFilesLines
* [archiso] Rework checksum functionGerardo Exequiel Pozzi2014-06-281-22/+8
|
* [archiso] _chroot_init() remove "already runned" logicGerardo Exequiel Pozzi2014-06-281-7/+2
| | | | This is done better with run_once() in build.sh
* [archiso] command_install() remove "already executed" logicGerardo Exequiel Pozzi2014-06-281-8/+1
| | | | This is done better with run_once() in build.sh
* [archiso] Minor changeGerardo Exequiel Pozzi2014-06-281-3/+1
|
* [archiso] Remove _is_directory_changed()Gerardo Exequiel Pozzi2014-06-281-64/+32
| | | | This is a task done in some way by run_once() on build.sh
* [archiso] Rework _mount_fs() to _mount_airootfs() same for umountGerardo Exequiel Pozzi2014-06-281-30/+13
| | | | Also remove _show_space_usage() irrelevant now when fs size is fixed and big
* [archiso] Merge _mkfs() and _mksfs() in _mkairootfs()Gerardo Exequiel Pozzi2014-06-281-48/+21
|
* [archiso] rename airootfs.fs.sfs to airootfs.sfsGerardo Exequiel Pozzi2014-06-281-6/+6
| | | | | * Make it ISO9660 friendly (extra dot "." is replaced by "_") * Was used when support both .fs.sfs and .sfs
* [archiso] Drop aitab supportGerardo Exequiel Pozzi2014-06-281-34/+14
| | | | | | | Always create one filesystem of a fixed size (32G), format (ext4) and know name "airootfs". Simplify logic a lot.
* [archiso] mkarchiso: Add -c switch to specify squashfs compression type.Gerardo Exequiel Pozzi2014-06-281-7/+9
|
* [archiso] Always use a 32GiB filesystem size for airootfsGerardo Exequiel Pozzi2014-06-281-21/+3
| | | | | | There is no big overhead. Space usage in ext4-1G is ~0.4M while in ext4-32G is ~4M. Just use a big value to make all people happy.
* [archiso] mkarchiso: Only use ext4 as filesystem for airootfsGerardo Exequiel Pozzi2014-06-281-29/+6
|
* [archiso] Rename root-image to airootfsGerardo Exequiel Pozzi2014-06-281-27/+27
| | | | | | Two purposes: * systemd filename friendly: "-" is used for "/" and must be escaped with "\x20" * ISO9660 filename friendly: "-" is replaced with "_"
* [archiso] mkarchiso: init cmd: test for file instead of directoryGerardo Exequiel Pozzi2013-10-021-1/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: use arch-install-scripts instead of own functionsGerardo Exequiel Pozzi2013-09-211-37/+6
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/releng] explicit set 'Storage=volatile' for journaldGerardo Exequiel Pozzi2013-09-211-5/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add support to isohybrid-gpt for EFI bootGerardo Exequiel Pozzi2013-06-201-2/+5
| | | | | | | | | | | Tested and works fine under qemu using seabios and ovmf $ qemu-system-x86_64 -enable-kvm -drive file=~/archlinux-2013.06.20-dual.iso $ qemu-system-x86_64 -enable-kvm -drive file=~/archlinux-2013.06.20-dual.iso,media=cdrom $ qemu-system-x86_64 -enable-kvm -bios ~/arch/OVMF/bios.bin -drive file=~/archlinux-2013.06.20-dual.iso $ qemu-system-x86_64 -enable-kvm -bios ~/arch/OVMF/bios.bin -drive file=~/archlinux-2013.06.20-dual.iso,media=cdrom Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Fix find cmd in _cleanup()Gerardo Exequiel Pozzi2013-03-031-1/+1
| | | | | | Fix FS#34075 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: Cleanup kernel(s) in /bootGerardo Exequiel Pozzi2012-12-161-2/+6
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: do not process aitab entry if arch differsGerardo Exequiel Pozzi2012-12-161-0/+3
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: Disable lazy_itable_init (ext4)Gerardo Exequiel Pozzi2012-12-101-1/+1
| | | | | | | | | Ensure that all inode table is initialized at filesystem creation. (Anyway filesystem is small, so at first mount is may quickly initialized) This avoid possible COW usage during runtime ;) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] mkarchiso: Use truncate instead of ddGerardo Exequiel Pozzi2012-12-101-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [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>