免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1367 | 回复: 0
打印 上一主题 下一主题

chroot in kspost [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-20 16:08 |只看该作者 |倒序浏览
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
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-kickstart2-postinstallconfig.html


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13393/showart_2155048.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP