Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
arch/ | H | - | - | 34,888 | 24,352 | |
Makefile | H A D | 06-Jan-2024 | 1.5 KiB | 69 | 50 | |
Makefile.inc | H A D | 01-Dec-2024 | 7.8 KiB | 283 | 213 | |
README.md_defs | H A D | 06-Jan-2023 | 4.2 KiB | 132 | 86 | |
SPELLING.en | H A D | 26-Jul-2014 | 405 | 16 | 13 | |
TODO | H A D | 26-Jul-2014 | 4.3 KiB | 130 | 94 | |
aout2elf.c | H A D | 12-Jun-2019 | 11.1 KiB | 448 | 284 | |
bsddisklabel.c | H A D | 06-Jan-2023 | 54 KiB | 2,040 | 1,634 | |
checkrc.c | H A D | 31-Jan-2021 | 3.2 KiB | 118 | 66 | |
configmenu.c | H A D | 24-Mar-2024 | 12.9 KiB | 544 | 427 | |
defs.h | H A D | 22-Apr-2024 | 32.8 KiB | 1,040 | 636 | |
defsizes.h | H A D | 12-Jun-2019 | 2.3 KiB | 71 | 30 | |
disklabel.c | H A D | 04-Oct-2024 | 36.7 KiB | 1,363 | 1,111 | |
disks.c | H A D | 24-Jun-2023 | 65.4 KiB | 2,768 | 2,137 | |
disks_lfs.c | H A D | 26-Jul-2014 | 1.7 KiB | 45 | 11 | |
endian.h | H A D | 26-Jul-2014 | 121 | 5 | 2 | |
factor.c | H A D | 31-Jan-2021 | 3.7 KiB | 144 | 69 | |
geom.c | H A D | 31-Jan-2021 | 3.3 KiB | 123 | 72 | |
gpt.c | H A D | 24-Mar-2024 | 48 KiB | 1,944 | 1,527 | |
gpt_uuid.c | H A D | 12-Jun-2019 | 117 | 5 | 2 | |
install.c | H A D | 06-Jan-2023 | 6.2 KiB | 251 | 167 | |
label.c | H A D | 14-Feb-2024 | 63.8 KiB | 2,438 | 1,966 | |
main.c | H A D | 21-Feb-2024 | 16.7 KiB | 688 | 497 | |
mbr.c | H A D | 11-Apr-2024 | 81.8 KiB | 3,208 | 2,531 | |
mbr.h | H A D | 12-Oct-2020 | 4.5 KiB | 140 | 55 | |
menus.entropy | H A D | 17-Dec-2023 | 5.6 KiB | 134 | 121 | |
menus.mi | H A D | 17-Dec-2023 | 23.8 KiB | 683 | 620 | |
menus.pm | H A D | 09-Jan-2020 | 6.3 KiB | 183 | 170 | |
msg.entropy.de | H A D | 21-Apr-2022 | 4.6 KiB | 131 | 102 | |
msg.entropy.en | H A D | 21-Apr-2022 | 4.4 KiB | 130 | 101 | |
msg.entropy.es | H A D | 21-Apr-2022 | 4.4 KiB | 130 | 101 | |
msg.entropy.fr | H A D | 21-Apr-2022 | 4.4 KiB | 130 | 101 | |
msg.entropy.pl | H A D | 21-Apr-2022 | 4.4 KiB | 130 | 101 | |
msg.mbr.de | H A D | 12-Jun-2019 | 4.5 KiB | 143 | 115 | |
msg.mbr.en | H A D | 12-Jun-2019 | 4.2 KiB | 141 | 113 | |
msg.mbr.es | H A D | 12-Jun-2019 | 4.3 KiB | 141 | 113 | |
msg.mbr.fr | H A D | 12-Jun-2019 | 4.3 KiB | 140 | 113 | |
msg.mbr.pl | H A D | 12-Jun-2019 | 4.2 KiB | 140 | 114 | |
msg.mi.de | H A D | 20-Jun-2024 | 45.6 KiB | 1,590 | 1,268 | |
msg.mi.en | H A D | 20-Jun-2024 | 40.7 KiB | 1,527 | 1,213 | |
msg.mi.es | H A D | 25-Apr-2024 | 44.7 KiB | 1,575 | 1,261 | |
msg.mi.fr | H A D | 22-Apr-2024 | 44.5 KiB | 1,606 | 1,298 | |
msg.mi.pl | H A D | 25-Apr-2024 | 41.5 KiB | 1,512 | 1,205 | |
msg.pm.de | H A D | 04-Nov-2020 | 6.9 KiB | 168 | 158 | |
msg.pm.en | H A D | 05-Nov-2020 | 6.7 KiB | 168 | 159 | |
msg.pm.es | H A D | 05-Nov-2020 | 6.9 KiB | 167 | 158 | |
msg.pm.fr | H A D | 05-Nov-2020 | 7 KiB | 167 | 158 | |
msg.pm.pl | H A D | 05-Nov-2020 | 6.8 KiB | 167 | 158 | |
msg_cmp.sh | H A D | 11-Jun-2019 | 3 KiB | 101 | 48 | |
msg_xlat.sh | H A D | 11-Oct-2021 | 5.3 KiB | 217 | 144 | |
net.c | H A D | 17-Dec-2023 | 34.1 KiB | 1,339 | 944 | |
part_edit.c | H A D | 15-May-2022 | 36.6 KiB | 1,479 | 1,196 | |
partitions.c | H A D | 11-Sep-2021 | 6.4 KiB | 234 | 145 | |
partitions.h | H A D | 06-Jan-2023 | 21.9 KiB | 648 | 186 | |
partman.c | H A D | 25-Nov-2023 | 86.2 KiB | 3,441 | 3,012 | |
run.c | H A D | 04-Oct-2024 | 16.3 KiB | 742 | 573 | |
sizemultname.c | H A D | 27-Jan-2020 | 2.5 KiB | 84 | 39 | |
sysinst.8 | H A D | 28-Jan-2022 | 4.7 KiB | 136 | 135 | |
target.c | H A D | 10-Feb-2022 | 17.6 KiB | 716 | 420 | |
txtwalk.c | H A D | 31-Jan-2021 | 6.3 KiB | 277 | 197 | |
txtwalk.h | H A D | 07-Aug-2019 | 2.8 KiB | 85 | 19 | |
unif.awk | H A D | 26-Jul-2014 | 2.3 KiB | 99 | 49 | |
upgrade.c | H A D | 24-Jun-2022 | 5.8 KiB | 239 | 136 | |
util.c | H A D | 25-Apr-2024 | 60.8 KiB | 2,686 | 2,049 | |
wskbd.c | H A D | 31-Jan-2021 | 4.4 KiB | 154 | 95 |
README.md_defs
1/* $NetBSD: README.md_defs,v 1.8 2023/01/06 15:05:52 martin Exp $ */ 2 3The following is trying to document the most important machine dependent 4defines used in the sysinst code. 5 6 7If HAVE_GPT is true, the MD code may limit the space used for the 8GPT at the beginning of the disk to allow e.g. a bootloader 9being added after it (see evbarm on allwinner SoCs, u-boot is 10copied at 8k into the image). 11 12/* Size limit for the initial GPT part, in bytes */ 13#define MD_GPT_INITIAL_SIZE (8*1024) 14 15 16The default installation description is created as a static array using 17lots of conditionals. It may be overridden / replaced in the MD code 18(see below), an example for that is arch/i386/md.c when we have been 19booted from UEFI firmware. 20 21Name Value / example Description 22PART_BOOT (8*MEG) (undefined) if defined, a boot partition 23 of this size (in bytes, rounded) 24 will be part of the default partition 25 suggestions. Must be compile time 26 const! Use MD_PART_DEFAULTS if 27 runtime adjustment is needed. 28PART_BOOT_MOUNT "/boot" (undefined) Add boot partition to fstab for 29 this mount point 30PART_BOOT_TYPE FS_BSDFS Kind of filesystem used 31PART_BOOT_SUBT MBR_PTYPE_FAT12 File system specific sub type 32 33 34The boot partition is always inserted at the front of the suggested default 35partitions, to cope with firmwares that may not be able to load from the 36whole disk. 37 38If multiple boot partitions are required (see ofppc, where various schemes 39are supported, depending on exact model), the variables above can all be 40repeated with _BOOT1_ or _BOOT2_ name instead of _BOOT_. 41 42 43ATTENTION: 44 PART_BOOT is in BYTE (not MB), while most other sizes 45 (DEFROOTSIZE, DEFSWAP, ...) are in MB! 46 47 48The following macros provide optional MD hooks: 49 50MD_PART_DEFAULTS may be undefined 51 52used like: 53 54 void MD_PART_DEFAULTS(struct pm_dev*, struct part_usage_info*, 55 size_t num_usage_infos), 56 57Called before any of the partition usage defaults is ever used, can be used 58to adjust e.g. partition sizes to actual system requirements (align boot 59partition with cylindersize), or (since it is a macro and all params are 60by references) to completely swap the defaults (e.g. EFI vs. biosboot). 61If swapping, make sure allocation and num_usage_infos stays consistent, 62old allocation is done by calloc(3), use free(3) to release. 63 64 65MD_NEED_BOOTBLOCK may be undefined 66 67used like: 68 69 bool MD_NEED_BOOTBLOCK(struct install_partition_desc *install) 70 71returns true if this setup needs boot blocks. Used for example on x86 72when UEFI installs do not need any bootblocks, but BIOS ones do. 73 74MD_MAY_SWAP_TO may be undefined 75 76used like: 77 78 bool MD_MAY_SWAP_TO(const char *disk_name) 79 80returns true if the disk is usable as a swap device. Typical implementation 81in utils.c:may_swap_if_not_sdmmc. 82 83MD_SET_EXTRACT_FINALIZE may be undefined 84 85used like: 86 87 int MD_SET_EXTRACT_FINALIZE(int update) 88 89extracts any additional parts of the distribution. Returns an error code 90if something fails. 91 92 93HAVE_PLAIN_DISKLABEL_BOOT may be undefined, only used on architectures 94 that have MBR as primary with disklabel as 95 secondary partitioning scheme (RAW_PART == 3) 96 97used like: 98 99 bool HAVE_PLAIN_DISKLABEL_BOOT(const char *disk) 100 101returns true if the disk could be made bootable with only a disklabel 102(and no MBR). 103 104 105DISKLABEL_NO_ONDISK_VERIFY usually undefined 106 107If defined, do not verify the presence of on-disk disklabels before 108offering the disklabel partitioning scheme. This allows ports to use 109kernel translation for the disklabel ioctls (e.g. x68k uses Human68k 110partitions this way). 111 112 113HAVE_GPT_BOOT defined if the architecture can boot from GPT 114 115HAVE_EFI_BOOT defined if the architecture may be able 116 to boot from an EFI partition 117 118NO_DISKLABEL_BOOT defined if the architecture can NOT boot 119 from a disklabel partitioned disk 120 121MD_DISKLABEL_PART_INDEX_CHECK usually undefined 122 123 if defined evaluates to a boolean attribute 124 which is passed a struct disklabel, an integer 125 index and a const struct disk_part_info*. 126 The result qualifies the given new partition 127 to take the disklabel l_partition entry 128 with the given index. Used for example 129 in luna68k to move the FFSv1 boot partition 130 (which would otherwise end up as partition 'a') 131 to a partition past RAW_PART (so 'd' on luna68k) 132