Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
AgeCommit message (Collapse)Author
2020-08-11archiso/initcpio/hooks/archiso: remove option terminator from the blockdev ↵nl6720
command Apparently blockdev does not support it. In an ISO made using '-s img' (Squashfs with dm-snapshot), it results in: blockdev: Unknown command: --
2020-07-30Ensure all files in the ISO's Rock Ridge file system are owned by rootnl6720
archiso/mkarchiso: Add the -rational-rock option to xorriso. This is a preparatory step for creating ISOs as a regular user. See https://gitlab.archlinux.org/archlinux/archiso/-/issues/40 .
2020-07-30Show mksquashfs progress bar when mkarchiso is run in verbose modenl6720
2020-07-29archiso/initcpio/install/archiso: fix GnuPG home directory permissionsnl6720
Gets rid of a gpg warning: gpg: WARNING: unsafe permissions on homedir '/tmp/mkinitcpio.*/root/gpg'
2020-07-29Add license and basic documentationDavid Runge
LICENSE: Add GPL-3.0 license. {{archiso,configs}/*,.editorconfig,.gitlab-ci.yml}: Add SPDX license identifier. Makefile: Add SPDX license identifier. Install the `run_archiso.sh` script as global executable `run_archiso`. Use -D and -t flags to install to install files more generically (without a previous call to install the directory). README.rst: Add README outlining the project's scope, how to build images from the profiles and how to test. AUTHORS.rst: Add list of all direct contributors to the repository. CONTRIBUTING.rst: Add basic contribution guidelines, explaining the linter and the license in use. Closes #7 Closes #3
2020-07-17Separate custom comments from shellcheck commentsnl6720
Having a shellcheck directive and custom comments in the same line can trigger SC1107 on old versions of shellcheck.
2020-07-11Adding linting for initcpio scriptsDavid Runge
archiso/initcpio/install/*: Setting bash shebang for all scripts and making them comform with shellcheck. archiso/initcpio/{hooks,script}/*: Setting ash shebang for all scripts and making them comform with shellcheck (for dash, as shellcheck has no ash specific ruleset). Essentially the ash based scripts should be POSIX compliant as much as possible to have an easier time writing, debugging and maintaining them. Ensuring that variables are not treated as options and introducing variable quoting. .gitlab-ci.yml: Integrating shellcheck for initcpio scripts. Closes #32
2020-07-01Add amdgpu and mgag200 to the archiso_kms mkinitcpio hooknl6720
See https://wiki.archlinux.org/index.php/Kernel_mode_setting#Early_KMS_start .
2020-06-30Fixing issues with variable quoting and arraysDavid Runge
archiso/mkarchiso: Calls to _pacman() need to be done with multiple parameters (e.g. array) instead of one string, as string splitting is not done in that function anymore. Turning _iso_efi_boot_args from string into an array to have an easier time of passing it to xorriso. Calling xorriso within the if statements instead of providing -quiet via variable. Fixing command_install() to provide packages separately to _pacman() configs/releng/build.sh: Replacing all newlines when retrieving the packages from packages.x86_64 with spaces so they will be properly provided to "mkarchiso install".
2020-06-29Introducing shellcheck in gitlab CIDavid Runge
archiso/mkarchiso: Quoting all variables. Changing pkg_list to be an array instead of a string for easier handling. Using read to properly populate pkg_list from OPTARG with stripped whitespaces. Not exporting iso_label anymore as there seems to be no reason to do so. Introducing line breaks. .editorconfig: Setting max_line_length to 120. Adding a section for YAML files (e.g. .gitlab-ci.yml). configs/releng/build.sh Quting nearly all variables. Introducing line breaks. configs/baseline/build.sh: Quoting all variables. Introducing line breaks. .gitlab-ci.yml: Adding gitlab CI for shelleck linting of the config build scripts, mkarchiso and startup scripts in releng. Closes #19
2019-09-03add zstd in supported squashfs compression listChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-01-09make sure the root filesystem is owned by rootChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2018-07-26generate pkglist with query (not sync) operationChristian Hesse
Using the sync operation with list option fails with --sysroot when signed database files are around. Instead use the query operation, which uses the local databases of installed pakages only. The only downside is that we do no longer record the originating repository. Signed-off-by: Christian Hesse <mail@eworm.de>
2018-06-29Remove cow file early for non-persistent systemsv36Christian Hesse
The kernel has an open file handle after setting up the mapping. We can remove it early to make sure it is gone on shutdown. This helps to keep the cow_device clean for non-persistent systems where cow_directory contains a version specific string. Signed-off-by: Christian Hesse <mail@eworm.de>
2018-06-25[archiso] Drop --config when using --sysrootGerardo Exequiel Pozzi
https://lists.archlinux.org/pipermail/arch-releng/2018-June/003834.html Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2018-06-24[archiso] Use --sysroot when list installed packages.Gerardo Exequiel Pozzi
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2018-06-23Ensure correct umask for scriptsGerardo Exequiel Pozzi
Fix for FS#58473 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2018-06-17Drop the '-d' from pacstrap callsSean Enck via arch-releng
The '-d' in pacstrap is a noop nowadays, keeping it may cause confusion Signed-off-by: Sean Enck <enckse@gmail.com>
2017-10-17use a stronger hashing algorithmChristian Hesse
Nobody wants to use md5 these days... Signed-off-by: Christian Hesse <mail@eworm.de>
2017-06-04[archiso] Add ca-certificates.crtGerardo Exequiel Pozzi
Fix FS#54275 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2017-03-14Handle case where ip=dhcpDavid Thurstenson
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
2017-03-14Add timeout to ipconfig callDavid Thurstenson
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
2016-09-29pxe-common: not only search, but also domain entry in resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-09-29pxe-common: add dns domain name in resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-09-29pxe-common: add a comment what added settings to resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-07-05always set copytoram for pxe boot via httpChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-29fix indention and add EditorConfig configurationChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-28flush and set down only if boot interface is knownChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-27do not declare bootif_dev localChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-27use ip syntax according to ip-address(8)Christian Hesse
According to ip-address(8) flushing an interface requires the keyword 'dev'. Also add proper quoting. Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-25move modprobe to run_earlyhook()Christian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-24only run pxe late hook if $ip is givenChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-24fix NBD boot without copy-to-ramChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-03-18[archiso] Set net iface down if copytoram=y (default)Gerardo Exequiel Pozzi
This should fix FS#36749 Also flush address on specified device (default) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2016-03-01Fix non-signed buildsGerardo Exequiel Pozzi
FS#48382
2016-02-28Optionally sign the squashfs files with gpgThomas Bächler
A new option -g <keyid> is added to set the key id. The squashfs files are only signed if this option is set.
2016-02-28Add the verify=y option to verify the squashfs signature with gpgThomas Bächler
2016-02-28Add gpg to the image and optionally create a keyringThomas Bächler
If the ARCHISO_GNUPG_FD environment variable is set, its contents will be interpreted as an open file descriptor and its contents will be used to create a keyring in the initramfs in /gpg.
2016-02-04fix boot parameters for mount optionsChristian Hesse
Fixes: 03c296cb4f031148f657b8924460a30c5c9dfecc Signed-off-by: Christian Hesse <mail@eworm.de>
2015-12-13add boot params archisoflags= and cow_flags= for mount optionsChristian Hesse
Having files on btrfs subvolumes requires to give mount options. Add boot params archisoflags= and cow_flags= for this purpose. Boot parameters could look like this: ... archisodevice=/dev/sdaX archisoflags=subvolume=isos cow_device=/dev/sdaX cow_flags=subvolume=persist ... Signed-off-by: Christian Hesse <mail@eworm.de>
2015-09-28[archiso] mkarchiso: Switch to overlayfs by defaultGerardo Exequiel Pozzi
If old behaviour is needed use "... -s sfs prepare". Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2015-09-13cleaner boot from loopmounted iso fileAdam Purkrt
Currently, when booting loopmounted iso file, it is necessary to specify not only img_dev and img_loop (which should be sufficient), but also archisolabel or archisodevice. With this patch, archisodevice is directly populated with the correct loop device, and it is not necessary to specify the label when booting from loopmounted iso, which makes for leaner and cleaner grub.cfg.
2015-06-24flush ip addresses after copy to RAMChristian Hesse
We received an IP address from DHCP server and configure it statically. This is required if we continue to use network connectivity to access the root device (for example via NBD or NFS). The lease is not updated, though. This can cause trouble in networks with low lease times. So let's flush the addresses if root filesystem has been copied to RAM. A dhcp client in main system can handle the network connectivity then. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-05-29limit access to cow directoryChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-05-29launch interactive shell if ipconfig failsChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-05-29explicitly detach loop device on umount and silent losetup errorChristian Hesse
Umount detaches the loop device automatically, but let's make it explicit to be sure. Additionally losetup gives: losetup: /dev/loop0: detach failed: No such device or address This is kind of expected, let's silent the error message. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-04-21explicitly detach loop device on umountChristian Hesse
I see cases where a stale loop device stays around and fills up my partition as image file is still in use and does not get unlinked. Explicitly detach loop device on umount to fix that. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-27[archiso] Rename cowfile_size to cow_spacesize=Gerardo Exequiel Pozzi
The name is more relevant since the usage is shared for both dm-snapshot and overlayfs. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2015-01-27[archiso] Add optional OverlayFS supportGerardo Exequiel Pozzi
This is the first attemp to test overlayfs in archiso. The current dm-snapshot mode is keep and is enabled by default, while the new mode is enabled via "-s sfs" to mkarchiso. No new boot parameters are added, since archiso hooks detects if the .sfs file is for dm-snapshot (airootfs.img inside) or for overlayfs. Persistence is supported in overlayfs mode using the same options (cowlabel or cowdevice), but warning while in dm-snapshot mode, only one file is used (airootfs.cow), in overlayfs mode internal files for workdir/ and upperdir/ are allocated, so you can not use VFAT or NTFS. To test this, you need to enable [testing] in pacman.conf from releng profile and edit build.sh then add "-s sfs" in make_prepare() Look at: setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" prepare Replace with: setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -s sfs -D "${install_dir}" prepare The build requires just half of space that the build for dm-snapshot, since there is no ext4 img ;) Just to remember: there is no space gain in .sfs (just about 2M) There is at least one thing during boot with machine-id service: Dec 24 03:31:39 archiso systemd-machine-id-commit[183]: Failed to unmount transient /etc/machine-id file in our private namespace: Invalid argument Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2015-01-02allow to change dm snapshot chunksizeChristian Hesse
Copying big amount of data results in bad performance as data is written in chunks of 4kiB (8 * 512 bytes). The default is not changed but can be overwritten. Signed-off-by: Christian Hesse <mail@eworm.de>