Utilize OpenSolaris beadm to test unstable bits

本文介绍了一种使用 beadm 创建多个启动环境 (BE) 的最佳实践方法,以便在保持原有系统稳定的同时,测试新的开发内核版本。通过创建备份 BE 和开发分支 BE,并在开发分支中升级软件包,可以安全地进行新版本测试。此外,还介绍了如何针对特定构建版本创建专用 BE 并更新启动配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

If you need to test an dev kernel binarie. Try the following best practice.

One thing you can do is to use beadm(1M) to create one or more alternate boot environments (BE). This way you can keep 2009.06 but also experiment with the newer
bits in the dev tree.

There are various ways to do this... This is what I usually do to ensure that the stock bits remained absolutely unchanged. What we'll do it to create a tree of cloned disk images..

Create a backup up os2009.06 in case you mess something up. Then, create a branch for the development release. You may have to update some packages to be able to upgrade to newer releases, so we'll do that in the branch.

beadm create os2009.06-backup
beadm create dev-branch
beadm activate dev-branch
reboot

One you've rebooted, re-target (the dev-branch) from the release
repo to the development repo. Then upgrade the pkg package.

beadm list
pkg set-authority -O http://pkg.opensolaris.org/dev opensolaris.org
pkg install SUNWipkg

Now lets create a build specific BE. NOTE: b116 doesn't exist in
the repo as of today, but should shortly. ("pkg search entire" for a
list of builds).

From the dev-branch, create a b116 BE.

beadm create snv116
beadm mount snv116 /mnt
pkg -R /mnt refresh
pkg -R /mnt install entire@0.5.11-0.116
bootadm update-archive -R /mnt
beadm umount snv116
beadm activate snv116
reboot

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值