Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
e60c5d7f
Commit
e60c5d7f
authored
Nov 23, 2017
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: only install MBR on native install
we fix this by unsetting BOOTLOADER for all data only setups.
parent
e15cae56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup-disk.in
setup-disk.in
+2
-1
No files found.
setup-disk.in
View file @
e60c5d7f
...
@@ -649,7 +649,6 @@ setup_partitions() {
...
@@ -649,7 +649,6 @@ setup_partitions() {
supported_part_label
"
$DISKLABEL
"
||
return
1
supported_part_label
"
$DISKLABEL
"
||
return
1
# initialize MBR for syslinux only
# initialize MBR for syslinux only
# FIXME: this should only by run by native install
if
[
"
$BOOTLOADER
"
=
"syslinux"
]
&&
[
-f
"
$MBR
"
]
;
then
if
[
"
$BOOTLOADER
"
=
"syslinux"
]
&&
[
-f
"
$MBR
"
]
;
then
cat
"
$MBR
"
>
$diskdev
cat
"
$MBR
"
>
$diskdev
fi
fi
...
@@ -836,6 +835,7 @@ data_only_disk_install_lvm() {
...
@@ -836,6 +835,7 @@ data_only_disk_install_lvm() {
local
var_dev
=
/dev/
$vgname
/lv_var
local
var_dev
=
/dev/
$vgname
/lv_var
local
lvm_part_type
=
$(
partition_id lvm
)
local
lvm_part_type
=
$(
partition_id lvm
)
local
size
=
local
size
=
unset
BOOTLOADER
init_progs
||
return
1
init_progs
||
return
1
confirm_erase
$@
||
return
1
confirm_erase
$@
||
return
1
...
@@ -864,6 +864,7 @@ data_only_disk_install() {
...
@@ -864,6 +864,7 @@ data_only_disk_install() {
local
swap_part_type
=
$(
partition_id swap
)
local
swap_part_type
=
$(
partition_id swap
)
local
size
=
local
size
=
local
swap_dev
=
var_dev
=
local
swap_dev
=
var_dev
=
unset
BOOTLOADER
init_progs
||
return
1
init_progs
||
return
1
confirm_erase
$@
||
return
1
confirm_erase
$@
||
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment