Commit Graph

1159 Commits

Author SHA1 Message Date
Gerardo Exequiel Pozzi
24a9f2fc90 [configs/releng] Add vim-minimal to live-enviroment
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2015-04-16 22:10:57 -03:00
Gerardo Exequiel Pozzi
9322a0d3b7 [archiso] Rename cowfile_size to cow_spacesize=
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 14:37:05 -03:00
Gerardo Exequiel Pozzi
a637bdb857 [archiso] Add optional OverlayFS support
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-27 14:37:05 -03:00
Christian Hesse
fe29d5f334 add documentation for cow_chunksize=
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-02 15:13:36 -03:00
Christian Hesse
156b9a6093 allow to change dm snapshot chunksize
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>
2015-01-02 15:13:36 -03:00
Christian Hesse
0b7a77cfc3 use consistent syntax for boot parameter processing
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-02 15:13:35 -03:00
Gerardo Exequiel Pozzi
1da2d027c5 [configs/releng] Always install needed pkgs from build.sh
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-12-21 18:54:24 -03:00
Gerardo Exequiel Pozzi
f5518de732 [archiso] Merge cowspace_size= option in cowfile_size=
Since now cowspace_size == cowfile_size (only one file inside)

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-12-13 16:53:06 -03:00
Gerardo Exequiel Pozzi
abe198a73a prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-10-31 22:36:15 -03:00
Gerardo Exequiel Pozzi
d5ee91554b [configs/releng] Always load intel-ucode in early boot stage
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-10-31 22:29:33 -03:00
Gerardo Exequiel Pozzi
89e89bd96b [configs/*] Install archiso initcpio files in /etc/initcpio
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-10-29 20:35:00 -03:00
Gerardo Exequiel Pozzi
edfdd37ba0 [archiso] Change cowfile_size= behavior
Move from percent to explicit size and set a default of 256M (sparse)

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-10-13 21:15:22 -03:00
Thomas Bächler
ccbeb35a7f prepare release
Signed-off-by: Thomas Bächler <thomas@archlinux.org>
2014-09-02 20:37:04 +02:00
Thomas Bächler
8e1cb0670e releng: Add an empty machine-id in airootfs
This makes systemd generate a machine-id on early boot and prevents it from thinking we need
any "first boot" setup. We really don't want systemd thinking that, since we carefully prepared
our root file system.

This also ensures every live environment has a unique machine id.
2014-09-02 20:28:04 +02:00
Gerardo Exequiel Pozzi
d6ad403a43 prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-08-28 19:24:38 -03:00
Gerardo Exequiel Pozzi
9f88990065 [archiso] Disable ext4 resize_inode on airootfs.
Remove unused feature, just to save space
sizeof ext4 image (empty): 4.3M vs 403K (du airootfs.img)
sizeof used space (empty):  48M vs  20K (df)

Thanks Christian Hesse for initial tip.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-08-22 20:10:10 -03:00
Gerardo Exequiel Pozzi
b14adf04fe [archiso] Update README
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-08-12 20:37:12 -03:00
Lukas Fleischer
f5b84dad94 archiso_pxe_http: Fix location of airootfs.md5
Currently, when booting via HTTP, the airootfs.md5 file is downloaded to
/run/archiso/bootmnt/arch/. However, the checksum file is later assumed
to be located at "/run/archiso/bootmnt/arch/${arch}". Fix the _curl_get
invocation and directly place the file in the right directory.

Fixes a regression introduced in commit b3e1d31 ([archiso] Rework
checksum function, 2014-06-28).

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2014-08-12 19:32:31 -03:00
Lukas Fleischer
5a8a8c7b10 Reintroduce the possibility to force an architecture
Among other things, 36459f3 ([archiso] Drop aitab support, 2014-06-28)
removed the possibility to manually set a specific architecture by using
kernel parameters. This, however, is useful, e.g. when installing Arch
Linux on a device that reports itself as i586 but works fine with the
i686 flavor.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2014-08-08 13:37:30 -03:00
Gerardo Exequiel Pozzi
01773d2b86 [configs/releng] Fix /root mode
Thanks Izumi Natsuka for reporting this.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-07-28 11:41:46 -03:00
Gerardo Exequiel Pozzi
c32457c5cf prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-07-26 17:56:03 -03:00
Gerardo Exequiel Pozzi
eea299fa19 [archiso] Remove workwaround for nls/vfat
The proper fix in now in mkinitcpio-18

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2014-07-26 17:26:16 -03:00
Gerardo Exequiel Pozzi
b3e1d31343 [archiso] Rework checksum function 2014-06-28 00:35:51 -03:00
Gerardo Exequiel Pozzi
4890ce0b67 [archiso] _chroot_init() remove "already runned" logic
This is done better with run_once() in build.sh
2014-06-28 00:35:51 -03:00
Gerardo Exequiel Pozzi
12286e2712 [archiso] command_install() remove "already executed" logic
This is done better with run_once() in build.sh
2014-06-28 00:35:51 -03:00
Gerardo Exequiel Pozzi
9532a8c3a9 [archiso] Minor change 2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
bdc79f2d26 [archiso] Remove _is_directory_changed()
This is a task done in some way by run_once() on build.sh
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
539c38663c [archiso] Rework _mount_fs() to _mount_airootfs() same for umount
Also remove _show_space_usage() irrelevant now when fs size is fixed and big
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
25e39ee081 [archiso] Merge _mkfs() and _mksfs() in _mkairootfs() 2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
ba40f273f6 [archiso] rename airootfs.fs.sfs to airootfs.sfs
* Make it ISO9660 friendly (extra dot "." is replaced by "_")
* Was used when support both .fs.sfs and .sfs
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
36459f3acc [archiso] Drop aitab support
Always create one filesystem of a fixed size (32G), format (ext4) and
know name "airootfs".

Simplify logic a lot.
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
9131f83404 [archiso] mkarchiso: Add -c switch to specify squashfs compression type. 2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
c62a9d748b [archiso] Always use a 32GiB filesystem size for airootfs
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.
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
b9833ce4f8 [archiso] mkarchiso: Only use ext4 as filesystem for airootfs 2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
604b182af5 [archiso] Rename root-image to airootfs
Two purposes:
 * systemd filename friendly: "-" is used for "/" and must be escaped with "\x20"
 * ISO9660 filename friendly: "-" is replaced with "_"
2014-06-28 00:35:50 -03:00
Gerardo Exequiel Pozzi
6a7497e23d prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-05-21 21:01:42 -03:00
Gerardo Exequiel Pozzi
4f4af3df6e [archiso] Add nls_iso8859-1 to initramfs.
Fix FS#40217

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-05-21 20:45:29 -03:00
Gerardo Exequiel Pozzi
96499e4fd7 [configs/releng] Fix script= expansion
Fix FS#40049

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-04-25 11:42:41 -03:00
Gerardo Exequiel Pozzi
6836b770a2 [configs/releng] Update the way to set default multi-user.target
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-02-25 21:20:48 -03:00
Thomas Bächler
6ad005de64 releng: Add intel-ucode to packages.both
Ucode updates correct problems with the processor. Without this (or a firmware update),
some machines fail to work in a stable manner. Make sure that the installation is smooth
by providing the ucode on the live system.

(While we're at it, sort packages.both alphabetically.)
2014-02-02 12:57:09 +01:00
Pierre Schmitz
2bfb3396cf prepare release 2014-02-01 20:19:16 +01:00
Thomas Bächler
4f4120be22 releng: Fix 81-dhcpcd.rules
Commit a526d961f8 broke this rule for virtio and other
devices where no ID_NET_* is exported.
2014-02-01 09:55:32 +01:00
Gerardo Exequiel Pozzi
85b8b5d5e2 prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-01-03 22:31:33 -03:00
Gerardo Exequiel Pozzi
5cd02c7040 [configs/releng] Add clonezilla/drbl to live-enviroment
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2014-01-03 22:04:28 -03:00
Thomas Bächler
a526d961f8 Only launch dhcpcd for ethernet interfaces 2014-01-03 22:03:19 -03:00
Gerardo Exequiel Pozzi
6a34e12e68 prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2013-10-29 20:54:58 -03:00
Gerardo Exequiel Pozzi
6d4e69b905 [archiso] changes for syslinux 6
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2013-10-19 15:02:35 -03:00
Gerardo Exequiel Pozzi
c2b6209532 [archiso] mkarchiso: init cmd: test for file instead of directory
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2013-10-02 19:37:39 -03:00
Gerardo Exequiel Pozzi
773f118e19 prepare release
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2013-09-28 16:28:20 -03:00
Gerardo Exequiel Pozzi
997dabbce2 [archiso] mkarchiso: use arch-install-scripts instead of own functions
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2013-09-21 18:11:43 -03:00