⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.fc5

📁 可信GRUB的源码
💻 FC5
字号:
2006-09-13 GRUB TCG patch Version 0.2.0-beta1 for FedoraCore5

Quick Installation Guide for FC5 (from SRPM package)
====================================================

0) Setup SRPM build env recommended by FC5 

$ su -c 'yum install fedora-rpmdevtools'
$ fedora-buildrpmtree

Now $HOME/rpmbuild is your workspace

1) Create the source tree from SRPM and apply the TCG pacth

$ rpm -ivh grub-0.97-5.src.rpm
$ cd $HOME/rpmbuild/SPECS/
$ rpmbuild -bp grub.spec
$ cd ../BUILD/grub-0.97/
$ patch -p1 < grub-0.97-fc5-tcg-0.2.0-beta1.patch

2) Build

$ autoreconf --install --force
$ CFLAGS="-Os -g -fno-strict-aliasing -Wall -Werror -Wno-shadow -Wno-unused -Wno-pointer-sign"
$ export CFLAGS
$ ./configure --sbindir=/sbin --disable-auto-linux-mem-opt --enable-trustedboot
$ make

3) Install Grub package (This step do not update the Grub in MBR)

# make install


4) Install to USB memory(e.g. /dev/sdb) for test

When you plug the  USB memory stick. FC5 will mount it automatically.
Check the drive name and mount point (e.g. /media/usb) by df or dmesg. Then,
 
# /sbin/grub-install --no-floppy --root-directory=/media/usb /dev/sdb
# umount /media/usb

Boot PC from the USB memory
Try following commands to test your BIOS TCG capabilities
grub> tpm pcrs
grub> tpm eventlog
grub> tpm test


5) Final Installation
If USB boot test works well, Install new Grub to your Boot HDD(e.g. /dev/sda)

# /sbin/grub-install /dev/sda

If you have any error message, do not reboot with this Grub.
To restore, please install the original Grub. 

# rpm -Uvh --force grub-0.97-5.i386.rpm
# /sbin/grub-install /dev/sda

Enjoy,











⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -