aboutsummaryrefslogtreecommitdiff
path: root/slof/fs/packages/disk-label.fs
AgeCommit message (Collapse)AuthorFilesLines
2013-10-04Add GPT supportAvik Sil1-10/+106
Add support for booting from a GPT partitioned disk. Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-05-21disk-label: Allocate 4096 bytes for 4k block devicesDinar Valeev1-3/+3
To make 4k scsi devices to work, allocated memory needs to be increased accordingly Tested in the following scenario: modprobe scsi_debug dev_size_mb=100 sector_size=4096 parted /dev/sdc u b p Model: Linux scsi_debug (scsi) Disk /dev/sdc: 209715200B Sector size (logical/physical): 4096B/4096B Partition Table: msdos Number Start End Size Type File system Flags 1 262144B 2097151B 1835008B primary boot, prep, type=41 2 2097152B 200015871B 197918720B primary type=83 qemu-system-ppc64 -enable-kvm -M pseries -m 1024 -nographic -drive file=/dev/sdc,if=none,format=raw,id=drive-scsi0 -device scsi-block,drive=drive-scsi0,id=scsi0 -vga none Signed-off-by: Dinar Valeev <dvaleev@suse.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-05-21disk-label: Increase the max size of the PReP boot partitionBenjamin Herrenschmidt1-2/+2
Some folks put a whole zImage in there, and we can easily cope with more than 8M nowadays. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-05-13Fix disk-label package to use proper instance pathBenjamin Herrenschmidt1-2/+2
This fixes booting from a path that has an explicitly specified unit address on a wildcard node Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-01-04Spelling fixes in comments and debug messagesStefan Weil1-1/+1
Most of these errors were found by codespell: controler -> controller appropiate -> appropriate devide -> divide comming -> coming seperate -> separate reponsible -> responsible initialization -> initialization successfull -> successful whithin -> within recieve -> receive wich -> which occurence -> occurrence beggining -> beginning accessable -> accessible proccess -> process succesfuly -> successfully immediatly -> immediately prefered -> preferred avaliable -> available threshhold -> threshold statistsics -> statistics endianess -> endianness positon -> position writen -> written occurence -> occurrence upto -> up to overwriten -> overwritten availabe -> available enviroment -> environment intruction -> instruction thru -> through substract -> subtract occured -> occurred begining -> beginning lenght -> length atributes -> attributes preceeding -> preceding defintion -> definition decriptor -> descriptor Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2012-04-30Fixed some bugs in the bootinfo.txt parsing codeThomas Huth1-3/+21
The bootinfo.txt parsing code assumed that the filename to the boot loader always contained a backslash. However, this is maybe not the case if the boot loader has been put into the root directory of the filesystem. For example SLES 8 used "boot &device;:1,yaboot.chrp" in its boot-script. Now we look for the &device; string instead which should always work. SLOF also failed if there were parameters after the path to the boot loader. Now we take care of the parameters, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2012-02-14Fixed disk-label partition parsing to also work with single partition argumentsThomas Huth1-5/+22
The parse-partition function was not able to deal with arguments that only contained a partition number (without comma), e.g. "boot disk:1" failed. Also limited the size that we load from a PReP partition in case the hard disk is smaller than max-prep-partition-blocks. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-17Fixed bug in disk-label support packageThomas Huth1-2/+2
The "offset" function only worked for partitions starting within the first 4 GiB of the disk. Also increased the amount of data to be read from a PReP partition since some clients are certainly bigger than 2 MiB nowadays.
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt1-0/+521
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>