The chosen partitions will be formatted and mounted and then the live system will be copied onto them. After this has completed, all the live modifications are removed/undone so that a normal Arch Linux system is left.
The volume label or uuid of the installation partition(s) may be optionally set, by passing the appropriate values.
larch(in) also provides for further tweaks during the installation process by means of the larch/copy/delarch file on the live medium, which is run at the end of this stage. The contents of this file are entirely left up to the creator of the larch profile.
The individual steps are:
Because of the way block devices are detected in Linux it is possible under certain circumstances for a partition to get assigned a different name (e.g. /dev/sda can become /dev/sdb) from one boot to the next. For this reason it is often sensible to address these devices in a more stable way in grub and /etc/fstab, either via volume label or UUID.
When a partition is formatted, it will generally receive a new UUID. It's label will be unchanged. It is possible to change the label, by passing an appropriate value as the fourth item in a partition-descriptor, e.g.
'/:dev/sda2:ext4:LABEL=ArchRoot'Alternatively (though probably rarely useful) the UUID can be set to a known value pay passing this instead of the label argument, e.g.
'/:dev/sda2:ext4:UUID=e548c2e4-bb47-4fc3-9496-a8c7affd4b82'If neither of these two values are passed the default behaviour (label unchanged, new UUID) will result.
The default in larchin is for /etc/fstab and grub to use the device LABEL, if there is one, otherwise the UUID. By setting the fourth item in the root-partition-descriptor to '-', it is possible to specify that the device name (e.g. /dev/sda2) should be used for addreesing the partition.
To allow tweaking of the way partitions are formatted, the syscall script 'part-format' sources a script in the sub-directory 'tweaks' with a name built from the file-system type, 'tweaks/format-fstype'. If you want to make use of this feature, see the 'part-format' script.