[Eisfair] E-1 2.6.1-iso: boot-partition nicht aktiviert nach Neuinstallation?
Thomas Bork
tom at eisfair.org
Mo Okt 5 19:24:28 CEST 2015
Am 05.10.2015 um 17:44 schrieb Marcus Roeckrath:
> Wühle mich gerade durch die ChangeSets; das ist wohl mit 34609 rausgeflogen,
> und zwar generell /tmp/partitions, die gibt es ab da nicht mehr.
Ab da gibt es generell keine MBR-Partitionierung mehr - das soll der
Kommentar des Changesets aussagen: don't use sfdisk for new partitions.
Vorher war GPT optional als Alternative zu MBR möglich - und das seit
März 2013. Seit dieser Zeit setze ich alle realen und auch virtuellen
Systeme mit GPT auf und teste jeden neuen Installer damit, denn an der
MBR-Partitionierung gab es keine Änderungen mehr.
Es gab dabei kein System, welches Probleme hatte. Und kein User schlug
in der NG oder per Mail mit so einem Problembericht bei mir auf.
> Betrifft das nur MBR-Systeme (meine sind so)
Bei mit alten Installern mit GPT-Partitionierung angelegten
boot-Partitionen (oder root, wenn boot nicht existiert) wurde immer
bootable gesetzt.
Bei keinem mit GPT partitionierten Systemen war das je der Fall.
> Betrifft das zudem nur ältere Boards/Biosse
Möglich.
Änderung sollte trivial sein:
[...]
#----------------------------------------------------------------------------
# prepare boot partition with 48 MB
#----------------------------------------------------------------------------
if [ "$boot" != "" ]
then
boot_idx=1
# e.g. hda1, set 'legacy BIOS bootable' with -A ${boot_idx}:set:2
if [ -n "${_raid_level}" ]
then
echo " Boot /dev/md$boot_idx $bootsize MB"
# boot geht in kompletter groesse auf alle Platten
else
if [ $cpqscsi_found = true ]
then
echo " Boot /dev/${disk}p$boot_idx $bootsize MB"
else
echo " Boot /dev/$disk$boot_idx $bootsize MB"
fi
fi
#sgdisk_boot="sgdisk --new=0:0:+${bootsize}M -t ${boot_idx}:8300 -c
${boot_idx}:boot /dev/$disk"
sgdisk_boot="sgdisk --new=0:0:+${bootsize}M -t ${boot_idx}:8300 -c
${boot_idx}:boot -A ${boot_idx}:set:2 /dev/$disk"
else
bootsize=0
boot_idx=0
# no extra boot partition
fi
[...]
#----------------------------------------------------------------------------
# prepare root partition
#----------------------------------------------------------------------------
if [ $boot_idx = 0 ] #
no boot partition, set 'legacy BIOS bootable' with -A ${root_idx}:set:2
then
if [ -n "${_raid_level}" ]
then
echo " Root /dev/md$root_idx Complete disk"
else
if [ $cpqscsi_found = true ]
then
echo " Root /dev/${disk}p$root_idx Complete disk"
else
echo " Root /dev/$disk$root_idx Complete disk"
fi
fi
#sgdisk_root="sgdisk --new=0:0:-10M -t ${root_idx}:8300 -c
${root_idx}:root /dev/$disk"
sgdisk_root="sgdisk --new=0:0:-10M -t ${root_idx}:8300 -c
${root_idx}:root -A ${root_idx}:set:2 /dev/$disk"
else
if [ $rootsize -gt 0 ]
# not the rest
then
if [ -n "${_raid_level}" ]
then
if [ "${_raid_n_disk}" -gt "2" ]
then
echo " Root /dev/md$root_idx $rootsize_raid5 MB"
# angezeigte groesse (nicht berechnete groesse pro platte)
else
echo " Root /dev/md$root_idx $rootsize MB"
# bei spiegelung auf beiden platten identisch
fi
else
if [ $cpqscsi_found = true ]
then
echo " Root /dev/${disk}p$root_idx $rootsize MB"
else
echo " Root /dev/$disk$root_idx $rootsize MB"
fi
fi
sgdisk_root="sgdisk --new=0:0:+${rootsize}M -t ${root_idx}:8300
-c ${root_idx}:root /dev/$disk"
else
if [ -n "${_raid_level}" ]
then
echo " Root /dev/md$root_idx Rest"
else
if [ $cpqscsi_found = true ]
then
echo " Root /dev/${disk}p$root_idx Rest"
else
echo " Root /dev/$disk$root_idx Rest"
fi
fi
sgdisk_root="sgdisk --new=0:0:-10M -t ${root_idx}:8300 -c
${root_idx}:root /dev/$disk"
fi
fi
--
der tom
[eisfair-team]
Mehr Informationen über die Mailingliste Eisfair