summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
AgeCommit message (Collapse)Author
2010-12-12cleanup finddisks and findblockdevices APIDieter Plaetinck
Due do to some old remaining cruft, the API for finddisks and findblockdevices was needlessly complicated. The only thing really needed is some ability to control what goes between entries. Al the other stuff (string at the end, control of newlines) was pointless.
2010-12-12reset sfdisk input before partitioning, to avoid extraneous stale dataDieter Plaetinck
2010-12-12refactor filesystem_packages code to use associative array definition at topDieter Plaetinck
2010-12-07fix missing filesystem friendly namesDieter Plaetinck
2010-12-06fix bug which prevented populating possible FS arrayDieter Plaetinck
2010-12-05code cleanup: use bash4 associative arrays for filesystem stuffDieter Plaetinck
now the information about which setup programs for filesystems, label programs, which FS'es can go on which blockdevices, need/can have labels, can be mounted and FS friendly names are in a central place in libs/lib-blockdevices-filesystems.sh. This simplifies the code somewhat where you actually want to work with the filesystems. Also, we only check the available filesystem utilities once at program startup, causing a performance improvement.
2010-12-05introduce experimental Nilfs2 supportDieter Plaetinck
2010-12-05make AIF track needed filesystem packagesDieter Plaetinck
filesystem packages are scheduled to go out of base, hence AIF must track which ones are needed and which are not by keeping an eye open during the filesystems creation (and rollback) steps. In the interactive procedure, the appropriate packages will be preselected, in the automatic procedure, you're supposed to configure the needed packages yourself now. This is reflected in the examples.
2010-04-18implement consistent/generic, more stable {en,de}coding of fs_params and ↵Dieter Plaetinck
fs_opts. this should fix some bugs with filesystem creating failing when options were specified
2010-04-16change infofy calls to inform, because libui-sh changed function nameDieter Plaetinck
2010-04-12perform udevadm settle to avoid raceconditions where the device would not be ↵Dieter Plaetinck
ready in time. fixes http://mailman.archlinux.org/pipermail/arch-releng/2010-April/000974.html
2010-04-10rename findpartitions to findblockdevices, as that's what it really does nowDieter Plaetinck
2010-04-10Do not hide the whole disk when choosing partitions for file systemsThomas Bächler
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2010-03-24implement labelsetting for those filesystems for which it was not ↵Matthias Dienstbier
implemented yet
2010-03-24fix returns and exits in subshellsMatthias Dienstbier
2010-03-10add possibility to use label for accessing partitionsMatthias Dienstbier
2010-03-07fix some whitespace2010.03.09Dieter Plaetinck
2010-03-05try to use UUID in fstab. fixes FS#17632 - [uuid support] regression in ↵Dieter Plaetinck
/etc/fstab
2010-03-05add the `-D' option to the sfdisk call.Mark Pustjens
This causes some extra space to be saved for the MBR, which is needed for grub2 in some cases. http://www.mail-archive.com/arch-general@archlinux.org/msg11100.html
2010-03-05support virtio blockdevicesVincent R
2009-08-02use correct exit code when creating FS'es failed + attempt to write to ↵Dieter Plaetinck
target fstab won't harm anyone even if we couldnt mount it on the live env
2009-08-01small optimisationDieter Plaetinck
2009-08-01debugging fix: use variable after it is setDieter Plaetinck
2009-07-29Several grub related fixesGerhard Brauer
Attached the extended patch, this replaced the one from my earlier mail. * Fixed grub device mapping in automatic procedure * Fixed bootdevice handling either if we use a seperate /boot or not in automatic procedure. * Added a hint to Luks passphrasing during process_filesystem The test i have made: a) automatic-lvm-dmcrypt-install-sda: menu.lst ok, HOOKS ok, Boot is fine.... b) generic-install-sda: menu.lst ok, HOOKs ok, boot ok c) generic-install-sda (but without seperate /boot partiton, sda1=swap sda2=/) menu.lst ok, HOOKs ok, boot ok d) fancy-install-on-sda Fails on creating all filesystems/lvm-partitions here, but this is because my Virtualbox VM has a too small disk http://users.archlinux.de/~gerbra/tmp/fancy-install-sda.png http://users.archlinux.de/~gerbra/tmp/fancy-install-sda-tty7.png With this changes i build now a new local iso here and test again a interactive install (no lvm,no crypt, only a normal install) to see if we hurt something in interactive... But i guess not.... Gerhard
2009-07-27merge in Gerhards grub refactoringsDieter Plaetinck
2009-07-27grub refactoringGerhard Brauer
I have tested it: - With raid1 and seperate /boot on an raid array - With raid1 and no seperate /boot on an raid array - Without raid and with/without seperate /boot On all installs grub installs successfully and i could boot the system. On the raid systems i could also boot from each HD in the array.
2009-07-26use debugging on get_anchestors_mountDieter Plaetinck
2009-07-26useful get_anchestors_mount function which gives you the blockdevice for a ↵Dieter Plaetinck
filesystem + all its ancestors. also: automatically generate grub menu.lst kernel line for dm-crypt, lvm etc setups
2009-07-26cleaner separation of concerns: remove $PART_ROOT hack in favor of more ↵Dieter Plaetinck
useful partion finding function
2009-07-26clear $PART_ROOT on rollback of /Dieter Plaetinck
2009-07-25make the $ret variable local everywhereDieter Plaetinck
2009-07-21support for reusing existing filesystemsDieter Plaetinck
2009-07-12Cause swap partitions have no (user) defined mountpoint they are notGerhard Brauer
added to the generated fstab. Fixed this with giving them a fs_mountpoint to "swap" while processing process_filesystem ().
2009-04-04stderr output fixDieter Plaetinck
2009-03-27this should fix FS#13700 - grub menu.lst updating is brokenDieter Plaetinck
2009-03-25some debugging to help FS#13700 - grub menu.lst updating is brokenDieter Plaetinck
2009-03-15fix for done_filesystems not being cleanup up after successfull rollback, ↵Dieter Plaetinck
causing problems when trying to make new filesystems after rollback + functionized fs properties setting
2009-03-14better modules stuff for encryptionDieter Plaetinck
2009-03-08fix for broken blockdevice size calculationsDieter Plaetinck
2009-02-28check_is_in fixes.. and this time i mean it.. i think. hopefully. + test ↵Dieter Plaetinck
script for check_is_in
2009-02-28check_is_in fixesDieter Plaetinck
2009-02-28support for debug categoriesDieter Plaetinck
2009-02-22todo updatesDieter Plaetinck
2009-02-22blockdevice documentation cleanup + use MiB in interactive blockdevice ↵Dieter Plaetinck
things instead of MB. inspired by FS#12949 - "hdparm -I" fails in VMware 0002-Using-MiB-and-GiB-instead-of-MB-and-GB-respectively.patch
2009-02-22cleanup in blockdevice size stuff. correct usage of units etc. inspired by ↵Dieter Plaetinck
FS#12949 - "hdparm -I" fails in VMware 0001-Using-fdisk-instead-of-hdparm-to-get-disc-capacity.patch
2009-02-22since we use /tmp now, no more need to hide files. some categorizing ↵Dieter Plaetinck
(tagging) of files is useful though
2009-02-14slightly better way to get disk size with fdiskDieter Plaetinck
2008-12-30small code cleanup + todo updatesDieter Plaetinck
2008-12-29ext4 supportDieter Plaetinck
2008-12-20fix for incorrect shebangsDieter Plaetinck