Using standard FOG 0.32 :
In any case : if you choose PXE as first boot option, workstation will never boot on HD as fallback. [S]This seems to be due to FOG thinking every MBR is 512K large wich is false (2048 for these Lenovo).[/S]
You can try to modify chain loader but you won’t be able to boot on anything else than PXE and sda ( [url]http://fogproject.org/forum/threads/lenovo-m72e.3709/[/url] ).
If you want to keep the original Lenovo MBR :
Manual image creation of [U]ONLY SDA2[/U] & upload :
- Launch workstation to image in FOG upload-debug mode (select PXE @ boot), then create and upload the sda2 image to FOG :
[CODE]mkdir /images
mount -o nolock,proto=tcp <IP.OF.FOG.SERVER>:/images/dev/ /images
mkdir /images/{temporarynameofimageupload}
mkfifo /tmp/pigz1
pigz -p 1 -3 < /tmp/pigz1 > /images/{temporarynameofimageupload}/sys.img.000 & partimage save /dev/sda2 /tmp/pigz1 -V9900000000 -z0 -o -d -f3 -b 2>/tmp/status.fog
[/CODE]
- On FOG server, move the uploaded image to the proper location :
[CODE]mv /images/dev/{temprorarynameofimageupload} /images/mygoodpc/sys.img.000[/CODE]
Manual image download of [U]ONLY SDA2[/U] to new workstation :
- Launch new workstation in FOG debug mode and copy image to sda2 :
[CODE]mkdir /images
mount -o nolock,proto=tcp <IP.OF.FOG.SERVER>:/images/ /images
partimage restore /dev/sda2 /images/mygoodpc/sys.img.000 -f3 -b[/CODE]
This way, you keep the original MBR and possibility to launch the factory Lenovo system restoration, but it is an “all manual” process…
I have modified Tom’s kernel to include a small ‘image2sda2.sh’ that avoids typing all commands to restore but it keeps being a pain to work with these Lenovo.