summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
AgeCommit message (Collapse)Author
2011-03-03be more strict and correct in worker exit codesDieter Plaetinck
2011-02-28Prompt user to pick a bootloader in interactive_select_packagespyther@pyther.net
This gives two advantages: 1) assurance the right package gets installed (and more explicit for user) 2) no need to ask for a bootloader again later in the process. Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-02-28Rewrite finddisks and findblockdevices (now find_usable_blockdevices)pyther@pyther.net
find_usable_blockdevices returns a list of block devices such as those exposed by SCSI/Sata, CCISS, IDA, LVM and Linux SOFT RAID; as well as any partitions on top of those. Devices in use by LVM and SOFT RAID are excluded. Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-02-11Fix indenting for lib-ui-interactive.sh and lib-blockdevices-filesystem.shpyther@pyther.net
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-02-08simplify mapdev() API a bit, fix indentationDieter Plaetinck
2011-02-08Cleanup grub / label/uuid related codeDieter Plaetinck
* indentation fixes * simplify label/uuid code * simplify variable names * remove some cruft * fix/improve some code and spelling
2011-01-29Use globbing and parameter expansion to get the raid slave devicespyther@pyther.net
Uses bash globbing and parameter expansion to find all of the slaves for a raid device. This is a much better method then using ls. Also, by looking at DEVNAME in the uevent file we provide support for block device that are not in the root of /dev. Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-01-29when using nullglob for specific sections, return to default bash behavior ↵Dieter Plaetinck
again afterwards
2011-01-29Improve logic which checks whether blockdevice is a raid devicepyther@pyther.net
device_is_raid now uses dev major number to determine if a device is a raid device. A major ID of 8 is a /dev/sd? device whereas a major ID of 9 is a 'metadata' (raid) device. Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-01-02make target_configure_fstab() properly support devicefiles, labels and uuidsDieter Plaetinck
2011-01-02change mdraid_is-raid to mdraid_is_raidpyther@pyther.net
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2011-01-02change mdraid_all-slaves to mdraid_all_slavespyther@pyther.net
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
2010-12-30bugfix: allow any kind of blockdevice to be queried for uuid/label, not just ↵Dieter Plaetinck
hd/sd partitions
2010-12-29allow setting labels for swapMatthias Dienstbier
2010-12-28cleanup target_configure_fstab(), correct exit codesDieter Plaetinck
2010-12-17preliminary btrfs supportDieter Plaetinck
2010-12-13parse_filesystem_string: handle no_fs cases, fixed display in "Manage ↵Dieter Plaetinck
Filesystems"
2010-12-13properly show partition info in "Manage filesystems"Dieter Plaetinck
this was broken since 6d8f39a5e114755b67b86529e6f16b7d9ee752df also, partinfo gathering is now in lib-blockdevices-filesystems.sh
2010-12-13make sure get_blockdevice_size returns 0 if there was no issue, this caused ↵Dieter Plaetinck
some sizes not be shown
2010-12-12enable backslash interpretation for finddisks and findblockdevices "things ↵Dieter Plaetinck
to echo"
2010-12-12nicer display of partitions and filesystems in "Manage filesystems"Dieter Plaetinck
2010-12-12make ask_option calls more uniform and nice (allow spaces)Dieter Plaetinck
2010-12-12clean up finddisks and findblockdevices codeDieter Plaetinck
make the finddisks and findblockdevices code more robust and somewhat cleaner
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