Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit 89524eb

Browse files
authored
Merge pull request #259 from grm34/dev
Allow decimals for partition sizes
2 parents 7d8e738 + acc005f commit 89524eb

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

STATS.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
File|blank|comment|code
44
:-------|-------:|-------:|-------:
5-
archboot|82|121|282
6-
src/arch/partitioning|86|90|229
5+
archboot|82|121|284
6+
src/arch/partitioning|86|87|230
77
src/arch/user|48|53|153
88
src/arch/base|30|39|94
99
src/arch/display|23|29|66
1010
src/arch/bootloader|23|25|57
11-
src/arch/gpu_driver|18|22|51
12-
src/arch/mirrorlist|22|22|50
11+
src/arch/gpu_driver|20|22|52
12+
src/arch/mirrorlist|22|22|51
1313
src/arch/firmware|14|13|47
1414
src/arch/desktop|11|17|25
1515
src/arch/mounting|9|15|13
1616
--------|--------|--------|--------
17-
SUM:|366|446|1067
17+
SUM:|368|443|1072
1818

1919
### Config files
2020

@@ -25,18 +25,18 @@ locale/german|13|15|130
2525
locale/french|13|15|130
2626
src/apps/desktop_apps|20|24|24
2727
src/conf/xinitrc|8|8|24
28+
src/apps/gpu_apps|12|15|17
2829
src/apps/system_apps|12|14|17
29-
src/apps/gpu_apps|10|13|16
3030
src/apps/display_apps|8|10|10
3131
--------|--------|--------|--------
32-
SUM:|97|114|481
32+
SUM:|99|116|482
3333

3434
### Markdown files
3535

3636
File|blank|comment|code
3737
:-------|-------:|-------:|-------:
3838
.github/CODE_OF_CONDUCT.md|35|0|49
39-
README.md|25|0|47
39+
README.md|25|0|48
4040
STATS.md|5|0|44
4141
.github/CONTRIBUTING.md|10|0|29
4242
.github/PULL_REQUEST_TEMPLATE.md|9|0|20
@@ -46,4 +46,4 @@ STATS.md|5|0|44
4646
.github/ISSUE_TEMPLATE/question.md|1|0|8
4747
.github/ISSUE_TEMPLATE/config.yml|0|0|1
4848
--------|--------|--------|--------
49-
SUM:|89|0|223
49+
SUM:|89|0|224

archboot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,12 @@ _install_display_manager; _enable_user_rights) 2>&1 | tee -a "${INSTALL_LOG}"
442442
_info "${MSG_INPUTS_LOGS}"
443443

444444
set | grep -v \
445-
"A=\|B=\|PASSWD\|ROOTPASSWD=\|USERPASSWD=\|RED=\|GREEN=\|YELLOW=\|BLUE=\|\
445+
"A=\|B=\|PASSWD=\|ROOTPASSWD=\|USERPASSWD=\|RED=\|GREEN=\|YELLOW=\|BLUE=\|\
446446
CYAN=\|BOLD=\|NC=\|ARGS=\|BASH_REMATCH=\|BYTES=\|CHAR=\|COLUMNS=\|CONFIRM=\|\
447447
COUNT=\|INDEX=\|LENTH=\|LINES=\|NUMBER=\|ORDER=\|PART=\|MSG_\|PIPESTATUS=\|\
448-
PARTITION_SIZE=\|PART_NAME=\|_CHOICE=\|BASE_SOURCES=|DE_SOURCES=\|OPTION=\|\
449-
OPT\|OPTIONAL=\|CHECK_COUNTRY_CODE=\|CHECK_IP=\|CHECK_MIRRORS=\|TOKEN=\|\
450-
SIZES_EQ" > new_vars.log
448+
PARTITION_SIZE=\|PART_NAME=\|_CHOICE=\|BASE_SOURCES=\|DE_SOURCES=\|OPTION=\|\
449+
OPT=\|OPTIONAL=\|CHECK_COUNTRY_CODE=\|CHECK_IP=\|CHECK_MIRRORS=\|TOKEN=\|\
450+
SIZES_EQ=\|CPU_LIST=\|PARTITION=" > new_vars.log
451451

452452
diff old_vars.log new_vars.log | grep "^>" >> "${INPUTS_LOG}"
453453
sed -i "$ d" "${INPUTS_LOG}"

src/arch/partitioning

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ _default_partitioning_scheme() {
134134
for PART in "${PARTITION[@]}"; do
135135
PART_NAME=${PART/_PARTITION/}
136136

137-
## Set partition sizes example
138-
if [[ ${PART} == "SWAP_PARTITION" ]]; then SIZES_EQ+=(4G)
139-
elif [[ ${PART} == "HOME_PARTITION" ]]; then SIZES_EQ+=(100G); fi
137+
if [[ ${PART} == "SWAP_PARTITION" ]]; then
138+
SIZES_EQ+=(4G)
140139

141140
## Free space for home ? (auto if MBR type with 4 partitions)
142-
if [[ ${PART} == "HOME_PARTITION" ]]; then
141+
elif [[ ${PART} == "HOME_PARTITION" ]]; then
142+
SIZES_EQ+=(100G)
143143

144144
if [[ ${FIRMWARE} == "BIOS" && ${#PARTITION[@]} == "4" ]]; then
145145
PARTITION_SIZE="freespace"
@@ -161,7 +161,7 @@ _default_partitioning_scheme() {
161161

162162
# Check if valid size (otherwise ask again)
163163
until [[ ${PARTITION_SIZE} =~ \
164-
^[1-9]{1}[[0-9]{0,2}(M|G|T){1}$ ]]; do
164+
^[1-9]{1}[0-9]{0,2}(,[0-9]{1,3}){0,1}(M|G|T){1}$ ]]; do
165165

166166
_note "${MSG_PART_SIZE} {M,G,T} (e.g., ${SIZES_EQ[${INDEX}]})"
167167
_prompt "${MSG_PROMPT_VALID_PART_SIZE} ${PART_NAME}:"

0 commit comments

Comments
 (0)