CentOS 和 Redhat的kictstart有一点区别,
默认情况下,%post的工作目录不同。
CentOS下,没有chroot,工作目录是/
redhat下,有chroot,工作目录也是/,但实际上是/mnt/sysimage.
%kspost
pwd
df
CentOS 4.4
/
Filesystem 1k-block Used Available Use% Mounted on
rootfs 6120 4179 1591 73% /
/dev/root.old 6120 4179 1591 73% /
10.224.106.11:/ks/32
346516448 268095968 60818464 82% /mnt/source
/tmp/loop0 107968 107968 0 100% /mnt/runtime
/tmp/sda8 3439052 72544 3188892 3% /mnt/sysimage/spare
/tmp/sda7 241116 6176 222492 3% /mnt/sysimage/tmp
/tmp/sda5 318902 10288 292149 4% /mnt/sysimage/var
/tmp/sda3 863628 17296 801752 3% /mnt/sysimage/opt
/tmp/sda2 2030768 35880 1890064 2% /mnt/sysimage
/tmp/sda1 287782 16025 256899 6% /mnt/sysimage/boot
/dev 127772 0 127772 0% /mnt/sysimage/dev
CentOS 5.3
/
Filesystem 1k-block Used Available Use% Mounted on
/dev 127772 0 127772 0% /dev
10.224.106.11:/ks/HW4.0/32
346516448 268095968 60818464 82% /mnt/source
/tmp/loop1 3877944 3877944 0 100% /mnt/source2
/tmp/loop0 107968 107968 0 100% /mnt/runtime
/tmp/sda9 778012 519820 218032 71% /mnt/sysimage
/tmp/sda8 3439052 72544 3188892 3% /mnt/sysimage/e
/tmp/sda7 241116 6176 222492 3% /mnt/sysimage/d
/tmp/sda5 318902 10288 292149 4% /mnt/sysimage/c
/tmp/sda3 863628 17296 801752 3% /mnt/sysimage/b
/tmp/sda2 2030768 35880 1890064 2% /mnt/sysimage/a
/tmp/sda1 287782 16025 256899 6% /mnt/sysimage/boot
/dev 127772 0 127772 0% /mnt/sysimage/dev
Redhat5.4
/
Filesystem 1k-block Used Available Use% Mounted on
/dev/root 8123200 1067188 6636716 14% /
Redhat 5.4(4.4也是)需要添加--nochroot才会不chroot
阅读(814) | 评论(0) | 转发(0) |