Categorie:BCLD uitrollen via GPO: verschil tussen versies
Geen bewerkingssamenvatting |
|||
(24 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 1: | Regel 1: | ||
< | |||
Hier wordt een | |||
== <P STYLE="color: #0000FF;">BCLD via GPO uitrollen</P> == | |||
Het is mogelijk om de BCLD via GPO uit te rollen. Hieronder wordt *globaal* aangegeven wat er voor nodig is. In uw eigen omgeving kan dit iets anders zijn. | |||
<nowiki>Hier wordt een opstartscript uitgevoerd die een aantal bestanden kopieert. Hierbij is het niet nodig een extra partitie aan te maken. Op deze manier kan de BCLD worden uitgerold zonder handmatige acties te verrichten. | |||
Tijdens het opstarten wordt een bootmenu getoond waaruit er kan worden gekozen tussen Windows of de BCLD. Door de time-out aan te passen start de machine automatisch door naar Windows. Wanneer de time-out op '0' wordt gezet, zal de machine direct doorstarten naar Windows. Dit kan bijvoorbeeld worden gebruikt wanneer er geen afnameperiodes zij. | |||
</nowiki> | |||
<nowiki>Hieronder een screenshot van alle bestanden die gekopieerd moeten worden. In de BCLD map staan de 2 linux bestanden uit de PXE download (vmlinuz, initrd). | |||
In dit geval wordt Grub2win als bootloader gebruikt. Hier zijn alleen de mappen ''''g2bootmgr'''' en ''''i386-pc'''' zijn hiervoor nodig en een CFG bestand deze moet in de grub2 map staan. Verder in deze post staat het CFG bestand.</nowiki> | |||
<gallery perrow="1" widths="320" heights="240"> | |||
GPO.JPG|GPO | |||
</gallery> | |||
== <P STYLE="color: #0000FF;">Batchfile</P> == | |||
Onderstaande batch file word als startup script uitgevoerd op de facet afname computers. | Onderstaande batch file word als startup script uitgevoerd op de facet afname computers. | ||
Het ID {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} kan | Het ID '''{48d0f13a-231d-11e6-9f9e-ab7cbd5115b2}''' kan verschillen, bijvoorbeeld als uw eigen computers meer partities heeft. | ||
'''Startup script batch file''': | |||
bcdedit.exe /create /application bootsector /d "Facet" | bcdedit.exe /create /application bootsector /d "Facet" | ||
bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} device "partition=C:" | bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} device "partition=C:" | ||
bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} path "\grub2\g2bootmgr\grub2win.boot.bios" | |||
bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} path | |||
"\grub2\g2bootmgr\grub2win.boot.bios" | |||
bcdedit.exe /displayorder {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} /addlast | bcdedit.exe /displayorder {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} /addlast | ||
bcdedit.exe /set {bootmgr} timeout "15" | bcdedit.exe /set {bootmgr} timeout "15" | ||
Ipadres van 1.1.1.1 aanpassen naar je eigen FAO ip of online afname url. | Ipadres van 1.1.1.1 aanpassen naar je eigen FAO ip of online afname url. | ||
grub.cfg: | |||
# | |||
# Created at 08:34:39 on Woensdag 11 Oktober 2017 | |||
# | == <P STYLE="color: #0000FF;">Grub aanpassen</P> == | ||
# Generated by Grub2Win Version 0.9.8.6 from directory C:\grub2 | |||
# Stamp 2017 - 1006 - 184758 | '''grub.cfg:''' | ||
# | |||
# The grub menu theme is - basic | <nowiki>#</nowiki> | ||
# | |||
# | <nowiki>#</nowiki> Created at 08:34:39 on Woensdag 11 Oktober 2017 | ||
# Grub2Win generated 1 menu entry | |||
# | <nowiki>#</nowiki> | ||
# The Grub default boot OS is menu entry 0 - FACET | |||
# The Grub default timeout is 0 seconds | <nowiki>#</nowiki> Generated by Grub2Win Version 0.9.8.6 from directory C:\grub2 | ||
# The Grub locale language is English The locale code is - en | |||
# | <nowiki>#</nowiki> Stamp 2017 - 1006 - 184758 | ||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> The grub menu theme is - basic | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> Grub2Win generated 1 menu entry | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> The Grub default boot OS is menu entry 0 - FACET | |||
<nowiki>#</nowiki> The Grub default timeout is 0 seconds | |||
<nowiki>#</nowiki> The Grub locale language is English The locale code is - en | |||
<nowiki>#</nowiki> | |||
set default=0 | set default=0 | ||
set grub2win_chosen='0 - FACET' | set grub2win_chosen='0 - FACET' | ||
set timeout=0 | set timeout=0 | ||
set lang=en | set lang=en | ||
set grub2win_version=0.9.8.6 | set grub2win_version=0.9.8.6 | ||
set pager=1 | set pager=1 | ||
set icondir=$prefix/themes/icons | set icondir=$prefix/themes/icons | ||
set locale_dir=$prefix/locale | set locale_dir=$prefix/locale | ||
set grub2win_procbits=32 | set grub2win_procbits=32 | ||
if [ cpuid -l ] ; then set grub2win_procbits=64 ; fi | if [ cpuid -l ] ; then set grub2win_procbits=64 ; fi | ||
set grub2win_bootmode=BIOS | set grub2win_bootmode=BIOS | ||
if [ $grub_platform = efi ] ; then set grub2win_bootmode=EFI ; fi | |||
if [ $grub_platform = efi ] ; then set grub2win_bootmode=EFI ; fi | |||
set grub2win_custmode=BIOS | set grub2win_custmode=BIOS | ||
set grub2win_lastbooted=no | set grub2win_lastbooted=no | ||
set gfxmode=1024x768,800x600,auto | set gfxmode=1024x768,800x600,auto | ||
set theme=$prefix/themes/custom.config | set theme=$prefix/themes/custom.config | ||
if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.efi.txt ; else set theme=$theme.bios.txt ; fi | if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.efi.txt ; else set theme=$theme.bios.txt ; fi | ||
export theme | export theme | ||
set gfxpayload= | |||
set gfxpayload=tekst | |||
export icondir | export icondir | ||
insmod png | insmod png | ||
insmod all_video | insmod all_video | ||
loadfont $prefix/fonts/unicode.pf2 | loadfont $prefix/fonts/unicode.pf2 | ||
insmod gfxterm | insmod gfxterm | ||
terminal_output gfxterm | terminal_output gfxterm | ||
insmod gfxmenu | insmod gfxmenu | ||
# | <nowiki>#</nowiki> start-grub2win-auto-menu-section *************************************************** | ||
# Menu Entry 0 FACET | <nowiki>#</nowiki> | ||
# | |||
# ** Grub will boot this entry by default ** | |||
# | <nowiki>#</nowiki> | ||
<nowiki>#</nowiki> Menu Entry 0 FACET | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> ** Grub will boot this entry by default ** | |||
<nowiki>#</nowiki> | |||
menuentry 'FACET' --class other --class icon-xtra-01 --class custom_000 { | menuentry 'FACET' --class other --class icon-xtra-01 --class custom_000 { | ||
# | |||
# start-custom-code | <nowiki>#</nowiki> | ||
<nowiki>#</nowiki> start-custom-code | |||
set root=(hd0,msdos2) | set root=(hd0,msdos2) | ||
linux /BCLD/vmlinuz quiet initrd=initrd bcld.url=https://1.1.1.1/facet-afname | linux /BCLD/vmlinuz quiet initrd=initrd bcld.url=https://1.1.1.1/facet-afname | ||
initrd /BCLD/initrd | initrd /BCLD/initrd | ||
# end-custom-code | |||
<nowiki>#</nowiki> end-custom-code | |||
savelast 0 'FACET' | savelast 0 'FACET' | ||
echo Grub is now loading FACET | echo Grub is now loading FACET | ||
# | <nowiki>}</nowiki> | ||
# end-grub2win-auto-menu-section *************************************************** | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> end-grub2win-auto-menu-section *************************************************** | |||
<nowiki>#</nowiki> start-grub2win-savelast-section **************************************************** | |||
<nowiki>#</nowiki> | |||
function savelast <nowiki>{</nowiki> | |||
set default=$1 | set default=$1 | ||
save_env default | save_env default | ||
if [ $grub2win_bootlast = yes ] ; then | if [ $grub2win_bootlast = yes ] ; then | ||
set grub2win_chosen=$default' - '$2 | set grub2win_chosen=$default' - '$2 | ||
fi | fi | ||
save_env grub2win_chosen | save_env grub2win_chosen | ||
if [ ! -z $subdefault ] ; then set default=$subdefault ; fi | if [ ! -z $subdefault ] ; then set default=$subdefault ; fi | ||
} | } | ||
# start-grub2win-getbootpartition-section ********************************************* | <nowiki>#</nowiki> | ||
# | |||
# The getbootpartition function searches for a partition | <nowiki>#</nowiki> end-grub2win-savelast-section **************************************************** | ||
# If the first paramater is 'label' it searches for a partition with the label name | |||
# passed in the second parameter. Otherwise it searches for a file with the filename | <nowiki>#</nowiki> start-grub2win-getbootpartition-section ********************************************* | ||
# passed in the second parameter. | |||
# It then sets the root address to prepare for boot. | <nowiki>#</nowiki> | ||
# | |||
# | <nowiki>#</nowiki> The getbootpartition function searches for a partition | ||
<nowiki>#</nowiki> If the first paramater is 'label' it searches for a partition with the label name | |||
<nowiki>#</nowiki> passed in the second parameter. Otherwise it searches for a file with the filename | |||
<nowiki>#</nowiki> passed in the second parameter. | |||
<nowiki>#</nowiki> It then sets the root address to prepare for boot. | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> | |||
function getbootpartition { | function getbootpartition { | ||
set pager=0 | set pager=0 | ||
set searchtype=$1 | set searchtype=$1 | ||
set partsearch=$2 | set partsearch=$2 | ||
if [ $searchtype = label ] ; then | if [ $searchtype = label ] ; then | ||
search.fs_label $partsearch rootaddress | search.fs_label $partsearch rootaddress | ||
else | |||
else | |||
search.file $partsearch rootaddress | search.file $partsearch rootaddress | ||
fi | fi | ||
if [ $? = 0 ] ; then | if [ $? = 0 ] ; then | ||
set root=($rootaddress) | set root=($rootaddress) | ||
echo | echo | ||
echo Grub is setting root to $root | echo Grub is setting root to $root | ||
echo The boot partion $searchtype is $partsearch | echo The boot partion $searchtype is $partsearch | ||
echo | echo | ||
else | else | ||
g2werror 'Grub did not find a boot partition with' $searchtype $partsearch | g2werror 'Grub did not find a boot partition with' $searchtype $partsearch | ||
fi | fi | ||
} | } | ||
function g2werror { | function g2werror { | ||
echo | echo | ||
echo | echo | ||
echo *** $1 $2 $3 $4 $5 | echo *** $1 $2 $3 $4 $5 | ||
echo *** Press the ESC key to | |||
echo *** Press the ESC key to continu | |||
echo | echo | ||
sleep -v -i 120 | sleep -v -i 120 | ||
configfile $prefix/grub.cfg | configfile $prefix/grub.cfg | ||
} | } | ||
# start-grub2win-user-section ******************************************************** | <nowiki>#</nowiki> | ||
# | |||
# | <nowiki>#</nowiki> end-grub2win-getbootpartition-section ******************************************** | ||
# end-grub2win-user-section ******************************************************** | |||
</ | <nowiki>#</nowiki> start-grub2win-user-section ******************************************************** | ||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> | |||
<nowiki>#</nowiki> end-grub2win-user-section ******************************************************** | |||
<big>Opmerking</big>: '''De ondersteuning op het uitrollen van Facet software via GPO of ander beleid valt buiten de scope van Duo. De Helpdesk Facet kan u hierin dan ook niet ondersteunen.''' |
Huidige versie van 10 aug 2020 om 09:09
BCLD via GPO uitrollen
Het is mogelijk om de BCLD via GPO uit te rollen. Hieronder wordt *globaal* aangegeven wat er voor nodig is. In uw eigen omgeving kan dit iets anders zijn.
Hier wordt een opstartscript uitgevoerd die een aantal bestanden kopieert. Hierbij is het niet nodig een extra partitie aan te maken. Op deze manier kan de BCLD worden uitgerold zonder handmatige acties te verrichten.
Tijdens het opstarten wordt een bootmenu getoond waaruit er kan worden gekozen tussen Windows of de BCLD. Door de time-out aan te passen start de machine automatisch door naar Windows. Wanneer de time-out op '0' wordt gezet, zal de machine direct doorstarten naar Windows. Dit kan bijvoorbeeld worden gebruikt wanneer er geen afnameperiodes zij.
Hieronder een screenshot van alle bestanden die gekopieerd moeten worden. In de BCLD map staan de 2 linux bestanden uit de PXE download (vmlinuz, initrd). In dit geval wordt Grub2win als bootloader gebruikt. Hier zijn alleen de mappen ''''g2bootmgr'''' en ''''i386-pc'''' zijn hiervoor nodig en een CFG bestand deze moet in de grub2 map staan. Verder in deze post staat het CFG bestand.
Batchfile
Onderstaande batch file word als startup script uitgevoerd op de facet afname computers.
Het ID {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} kan verschillen, bijvoorbeeld als uw eigen computers meer partities heeft.
Startup script batch file:
bcdedit.exe /create /application bootsector /d "Facet"
bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} device "partition=C:"
bcdedit.exe /set {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} path
"\grub2\g2bootmgr\grub2win.boot.bios"
bcdedit.exe /displayorder {48d0f13a-231d-11e6-9f9e-ab7cbd5115b2} /addlast
bcdedit.exe /set {bootmgr} timeout "15"
Ipadres van 1.1.1.1 aanpassen naar je eigen FAO ip of online afname url.
Grub aanpassen
grub.cfg:
#
# Created at 08:34:39 on Woensdag 11 Oktober 2017
#
# Generated by Grub2Win Version 0.9.8.6 from directory C:\grub2
# Stamp 2017 - 1006 - 184758
#
# The grub menu theme is - basic
#
#
# Grub2Win generated 1 menu entry
#
# The Grub default boot OS is menu entry 0 - FACET
# The Grub default timeout is 0 seconds
# The Grub locale language is English The locale code is - en
#
set default=0
set grub2win_chosen='0 - FACET'
set timeout=0
set lang=en
set grub2win_version=0.9.8.6
set pager=1
set icondir=$prefix/themes/icons
set locale_dir=$prefix/locale
set grub2win_procbits=32
if [ cpuid -l ] ; then set grub2win_procbits=64 ; fi
set grub2win_bootmode=BIOS
if [ $grub_platform = efi ] ; then set grub2win_bootmode=EFI ; fi
set grub2win_custmode=BIOS
set grub2win_lastbooted=no
set gfxmode=1024x768,800x600,auto
set theme=$prefix/themes/custom.config
if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.efi.txt ; else set theme=$theme.bios.txt ; fi
export theme
set gfxpayload=tekst
export icondir
insmod png
insmod all_video
loadfont $prefix/fonts/unicode.pf2
insmod gfxterm
terminal_output gfxterm
insmod gfxmenu
# start-grub2win-auto-menu-section *************************************************** #
#
# Menu Entry 0 FACET
#
# ** Grub will boot this entry by default **
#
menuentry 'FACET' --class other --class icon-xtra-01 --class custom_000 {
#
# start-custom-code
set root=(hd0,msdos2)
linux /BCLD/vmlinuz quiet initrd=initrd bcld.url=https://1.1.1.1/facet-afname
initrd /BCLD/initrd
# end-custom-code
savelast 0 'FACET'
echo Grub is now loading FACET
}
#
# end-grub2win-auto-menu-section ***************************************************
# start-grub2win-savelast-section ****************************************************
#
function savelast {
set default=$1
save_env default
if [ $grub2win_bootlast = yes ] ; then
set grub2win_chosen=$default' - '$2
fi
save_env grub2win_chosen
if [ ! -z $subdefault ] ; then set default=$subdefault ; fi
}
#
# end-grub2win-savelast-section ****************************************************
# start-grub2win-getbootpartition-section *********************************************
#
# The getbootpartition function searches for a partition
# If the first paramater is 'label' it searches for a partition with the label name
# passed in the second parameter. Otherwise it searches for a file with the filename
# passed in the second parameter.
# It then sets the root address to prepare for boot.
#
#
function getbootpartition {
set pager=0
set searchtype=$1
set partsearch=$2
if [ $searchtype = label ] ; then
search.fs_label $partsearch rootaddress
else
search.file $partsearch rootaddress
fi
if [ $? = 0 ] ; then
set root=($rootaddress)
echo
echo Grub is setting root to $root
echo The boot partion $searchtype is $partsearch
echo
else
g2werror 'Grub did not find a boot partition with' $searchtype $partsearch
fi
}
function g2werror {
echo
echo
echo *** $1 $2 $3 $4 $5
echo *** Press the ESC key to continu
echo
sleep -v -i 120
configfile $prefix/grub.cfg
}
#
# end-grub2win-getbootpartition-section ********************************************
# start-grub2win-user-section ********************************************************
#
#
# end-grub2win-user-section ********************************************************
Opmerking: De ondersteuning op het uitrollen van Facet software via GPO of ander beleid valt buiten de scope van Duo. De Helpdesk Facet kan u hierin dan ook niet ondersteunen.
Deze categorie bevat geen pagina’s of media.