aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-20 09:55:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-20 10:12:44 +0000
commit0dd1f10889920ec8a63f6072601786c0acc9a249 (patch)
tree05ef0f07792f5f1fd823ed27b3ed2d421b4b4365
parentd3dbd553c4cb5853d3c07fdb21b33fc5edb027ea (diff)
downloadalpine-conf-0dd1f10889920ec8a63f6072601786c0acc9a249.tar.bz2
alpine-conf-0dd1f10889920ec8a63f6072601786c0acc9a249.tar.xz
setup-disk: don't install syslinux for data-only
-rw-r--r--setup-disk.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/setup-disk.in b/setup-disk.in
index ad0bdb7..0df6d96 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -458,7 +458,7 @@ init_progs() {
btrfs) fstools="$fstools btrfs-progs";;
esac
done
- apk add --quiet sfdisk $lvmpkg $raidpkg syslinux $fstools $@
+ apk add --quiet sfdisk $lvmpkg $raidpkg $fstools $@
}
show_disk_info() {
@@ -505,7 +505,9 @@ setup_partitions() {
echo "w" | fdisk $diskdev >/dev/null
# fix the MBR while here so extlinux can boot
- cat "$MBR" > $diskdev
+ if [ -f "$MBR" ]; then
+ cat "$MBR" > $diskdev
+ fi
local start=1M
local line=
@@ -771,7 +773,7 @@ native_disk_install_lvm() {
local lvm_size=
local root_dev=/dev/$vgname/lv_root
- init_progs || return 1
+ init_progs syslinux || return 1
confirm_erase $@ || return 1
if [ -n "$USE_RAID" ]; then
@@ -802,7 +804,7 @@ native_disk_install() {
local root_size=
local root_dev= boot_dev= swap_dev=
- init_progs || return 1
+ init_progs syslinux || return 1
confirm_erase $@ || return 1
if [ -n "$USE_RAID" ]; then