11 Star 0 Fork 30

src-openEuler / openEuler-release

 / 详情

openeuler系统自定义封装镜像cdrom问题

Backlog
Bug
Opened this issue  
2021-08-26 15:12

二.版本信息
系统版本:openEuler 20.03 (LTS) ARM
内核版本:4.19.140-2009.4.0.0048.oe1.x86_64 (abuild@ecs-obsworker-207) (gcc version 9.3.1 (GCC))
三.硬件和系统信息总览
名称 型号/厂商/类型
Manufacturer Huawei
Product Name TaiShan 200 (Model 2280)
OS openEuler 20.03 (LTS) ARM
Kernel 4.19.90-2003.4.0.0036.oe1.aarch64 (gcc version 7.3.0 (GCC))

自定义镜像中,镜像封装过程中,使用centos的cdrom后,无法识别源,

Use network installation

cdrom

使用cdrom找不到安装源
输入图片说明

需要修改为

Use network installation

url --url="file:///run/install/repo/"

后续版本是否有修复计划

Comments (5)

柳磊 created缺陷
柳磊 set related repository to openEuler/kernel
Expand operation logs

Hey hongwentakkk, Welcome to openEuler Community.
You can follow the instructions at to interact with the Bot.
openeuler-ci-bot%!(EXTRA string=https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md)

openeuler-ci-bot added
 
sig/Kernel
label

@柳磊
你好,请描述一下您的自定义封装镜像的步骤。
另外,请解释一下“镜像封装过程中,使用centos的cdrom后,无法识别源”是什么意思?为何会涉及到centos?

在封装centos的源时,用的是cdrom 。

Use network installation

url --url="file:///run/install/repo/"
#cdrom
文件如下
[root@CentOS OS-Install-openEuler]# cd Make_Linux_Custom_ISO/
[root@CentOS Make_Linux_Custom_ISO]# ls
bak CMOS Custom_ISO Offical_ISO step0_make_linux_custom_iso.sh
[root@CentOS Make_Linux_Custom_ISO]# cd CMOS/
[root@CentOS CMOS]# ls
drivers etc packages scripts tools
[root@CentOS CMOS]# cd scripts/
[root@CentOS scripts]# ls
step1_openEuler-20.03_ks.cfg step3_openEuler_set_network.sh step5_openEuler_set_hostname.sh
step2_openEuler_first_boot.sh step4_openEuler_create_data.sh
[root@CentOS scripts]# cat step1_openEuler-20.03_ks.cfg
#version=DEVEL

Reboot after installation

reboot

Use text mode install

text
%post
mkdir -p /mnt/cdrom
mount -o loop /dev/sr0 /mnt/cdrom
cp -r /mnt/cdrom/CMOS /root/.CMOS
echo "sh /root/.CMOS/scripts/step2_openEuler_first_boot.sh >>/root/.CMOS/Install.log" >> /etc/rc.local
chmod +x /etc/rc.d/rc.local
umount /mnt/cdrom
rmdir /mnt/cdrom
%end
%packages
@^minimal-environment
@开发
@security-tools
@network-tools
@performance
ntp
ftp
telnet
expect
sysstat
pam-devel
zlib-devel
openssl-devel
kexec-tools
vim-enhanced
%end

Keyboard layouts

keyboard --vckeymap=us --xlayouts='us'

System language

lang en_US.UTF-8 --addsupport=zh_CN.UTF-8

Firewall configuration

firewall --disabled

Network information

network --hostname=localhost.localdomain

# Use network installation
url --url="file:///run/install/repo/"
#cdrom

System authorization information

authselect --enableshadow --passalgo=sha512

SELinux configuration

selinux --disabled

Run the Setup Agent on first boot

firstboot --enable

Do not configure the X Window System

skipx

System services

services --disabled="postfix" --disabled="chronyd" --enabled="NetworkManager"

ignoredisk --only-use=sda

System bootloader configuration

bootloader --append="crashkernel=auto" --location=mbr --boot-drive=sda

Clear the Master Boot Record

zerombr

Partition clearing information

clearpart --all --initlabel

Disk partitioning information

part /boot --fstype="xfs" --ondisk=sda --size=500
part pv.270 --fstype="lvmpv" --size=408797
part biosboot --fstype="biosboot" --ondisk=sda --size=1
part /boot/efi --fstype="efi" --ondisk=sda --size=300 --fsoptions="defaults,uid=0,gid=0,umask=077,shortname=winnt"
volgroup vg_sys --pesize=4096 pv.270
logvol / --fstype="xfs" --size=102400 --name=lv_root --vgname=vg_sys
logvol swap --fstype="swap" --size=32768 --name=lv_swap --vgname=vg_sys
logvol /home --fstype="xfs" --grow --size=16 --name=lv_home --vgname=vg_sys

System timezone

timezone Asia/Shanghai --utc

Root password

rootpw --iscrypted $6$SrP1VFOXLhIxxYzd$FO6z32hWMiTW/a8SPUH6yDEU1aB2MslT4Hl3JE5/WGApijqVTtpn1UOQ.57o8LChnyxez.27J1SecaSzmupgO0

%addon com_redhat_kdump --disable --reserve-mb='128'

%end

(1)

在封装centos的源时,用的是cdrom 。

抱歉,我不是很明白您的意思。您说的是在Centos的系统上进行openEuler镜像的二次封装,还是在的openEuler系统上进行centos镜像的二次封装?
同时,我看到您使用的是自定义的shell脚本进行镜像封装,我不了解脚本中具体做了什么。请问在执行这些脚本前,您是否检查过脚本里的代码?

(2)
输入图片说明
此外,您反馈的系统版本和内核版本架构不一致,是笔误吗?

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(4)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/openEuler-release.git
git@gitee.com:src-openeuler/openEuler-release.git
src-openeuler
openEuler-release
openEuler-release

Search