22.03 aarch64
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install openEuler 22.03-LTS' --class red --class gnu-linux --class gnu --class os {
linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-22.03-LTS-aarch64 ro inst.geoloc=0 console=tty0 smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 video=efifb:off video=VGA-1:640x480-32@60me fpi_to_tail=off
initrd /images/pxeboot/initrd.img
}
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64$ file initrd.img
initrd.img: XZ compressed data
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64$ mkdir initrdImg
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64$ cd initrdImg/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$ xz -dc ../initrd.img |cpio -id
cpio: dev/console: 函数 mknod 失败: 不允许的操作
cpio: dev/kmsg: 函数 mknod 失败: 不允许的操作
cpio: dev/null: 函数 mknod 失败: 不允许的操作
cpio: dev/random: 函数 mknod 失败: 不允许的操作
cpio: dev/urandom: 函数 mknod 失败: 不允许的操作
479492 块
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$ ll
总用量 12
lrwxrwxrwx 1 yeqiang yeqiang 7 2022-10-14 09:37:20 bin -> usr/bin
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 dev
drwxr-xr-x 11 yeqiang yeqiang 4096 2022-10-14 09:37:20 etc
lrwxrwxrwx 1 yeqiang yeqiang 23 2022-10-14 09:37:20 init -> usr/lib/systemd/systemd
lrwxrwxrwx 1 yeqiang yeqiang 7 2022-10-14 09:37:20 lib -> usr/lib
lrwxrwxrwx 1 yeqiang yeqiang 9 2022-10-14 09:37:20 lib64 -> usr/lib64
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 proc
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 root
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 run
lrwxrwxrwx 1 yeqiang yeqiang 8 2022-10-14 09:37:20 sbin -> usr/sbin
-rwxr-xr-x 1 yeqiang yeqiang 4627 2022-10-14 09:37:20 shutdown
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 sys
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 sysroot
drwxr-xr-x 2 yeqiang yeqiang 10 2022-10-14 09:37:20 tmp
drwxr-xr-x 9 yeqiang yeqiang 128 2022-10-14 09:37:24 usr
drwxr-xr-x 4 yeqiang yeqiang 71 2022-10-14 09:37:24 var
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$ ls usr/lib/systemd/system/ -l
总用量 388
-rw-r--r-- 1 yeqiang yeqiang 927 10月 14 09:37 basic.target
lrwxrwxrwx 1 yeqiang yeqiang 13 10月 14 09:37 ctrl-alt-del.target -> reboot.target
-rw-r--r-- 1 yeqiang yeqiang 1063 10月 14 09:37 debug-shell.service
lrwxrwxrwx 1 yeqiang yeqiang 13 10月 14 09:37 default.target -> initrd.target
-rw-r--r-- 1 yeqiang yeqiang 847 10月 14 09:37 dracut-cmdline-ask.service
-rw-r--r-- 1 yeqiang yeqiang 883 10月 14 09:37 dracut-cmdline.service
-rw-r--r-- 1 yeqiang yeqiang 681 10月 14 09:37 dracut-emergency.service
-rw-r--r-- 1 yeqiang yeqiang 800 10月 14 09:37 dracut-initqueue.service
-rw-r--r-- 1 yeqiang yeqiang 772 10月 14 09:37 dracut-mount.service
-rw-r--r-- 1 yeqiang yeqiang 801 10月 14 09:37 dracut-pre-mount.service
-rw-r--r-- 1 yeqiang yeqiang 1123 10月 14 09:37 dracut-pre-pivot.service
-rw-r--r-- 1 yeqiang yeqiang 893 10月 14 09:37 dracut-pre-trigger.service
-rw-r--r-- 1 yeqiang yeqiang 972 10月 14 09:37 dracut-pre-udev.service
-rw-r--r-- 2 yeqiang yeqiang 692 10月 14 09:37 emergency.service
-rw-r--r-- 1 yeqiang yeqiang 479 10月 14 09:37 emergency.target
-rw-r--r-- 1 yeqiang yeqiang 500 10月 14 09:37 final.target
-rw-r--r-- 1 yeqiang yeqiang 542 10月 14 09:37 halt.target
drwxr-xr-x 2 yeqiang yeqiang 43 10月 14 09:37 halt.target.wants
-rw-r--r-- 1 yeqiang yeqiang 670 10月 14 09:37 initrd-cleanup.service
-rw-r--r-- 1 yeqiang yeqiang 598 10月 14 09:37 initrd-fs.target
-rw-r--r-- 1 yeqiang yeqiang 820 10月 14 09:37 initrd-parse-etc.service
-rw-r--r-- 1 yeqiang yeqiang 566 10月 14 09:37 initrd-root-device.target
-rw-r--r-- 1 yeqiang yeqiang 571 10月 14 09:37 initrd-root-fs.target
-rw-r--r-- 1 yeqiang yeqiang 589 10月 14 09:37 initrd-switch-root.service
-rw-r--r-- 1 yeqiang yeqiang 779 10月 14 09:37 initrd-switch-root.target
drwxr-xr-x 2 yeqiang yeqiang 84 10月 14 09:37 initrd-switch-root.target.wants
-rw-r--r-- 1 yeqiang yeqiang 810 10月 14 09:37 initrd.target
-rw-r--r-- 1 yeqiang yeqiang 823 10月 14 09:37 initrd-udevadm-cleanup-db.service
-rw-r--r-- 1 yeqiang yeqiang 571 10月 14 09:37 initrd-usr-fs.target
-rw-r--r-- 1 yeqiang yeqiang 549 10月 14 09:37 kexec.target
drwxr-xr-x 2 yeqiang yeqiang 44 10月 14 09:37 kexec.target.wants
-rw-r--r-- 1 yeqiang yeqiang 705 10月 14 09:37 kmod-static-nodes.service
-rw-r--r-- 1 yeqiang yeqiang 453 10月 14 09:37 local-fs-pre.target
-rw-r--r-- 1 yeqiang yeqiang 555 10月 14 09:37 local-fs.target
-rw-r--r-- 1 yeqiang yeqiang 485 10月 14 09:37 mdadm-grow-continue@.service
-rw-r--r-- 1 yeqiang yeqiang 214 10月 14 09:37 mdadm-last-resort@.service
-rw-r--r-- 1 yeqiang yeqiang 179 10月 14 09:37 mdadm-last-resort@.timer
-rw-r--r-- 1 yeqiang yeqiang 1038 10月 14 09:37 mdmon@.service
-rw-r--r-- 1 yeqiang yeqiang 624 10月 14 09:37 multipathd-configure.service
-rw-r--r-- 1 yeqiang yeqiang 785 10月 14 09:37 multipathd.service
-rw-r--r-- 1 yeqiang yeqiang 540 10月 14 09:37 multi-user.target
drwxr-xr-x 2 yeqiang yeqiang 81 10月 14 09:37 multi-user.target.wants
-rw-r--r-- 1 yeqiang yeqiang 513 10月 14 09:37 network-online.target
-rw-r--r-- 1 yeqiang yeqiang 520 10月 14 09:37 network-pre.target
-rw-r--r-- 1 yeqiang yeqiang 529 10月 14 09:37 network.target
-rw-r--r-- 1 yeqiang yeqiang 562 10月 14 09:37 nss-lookup.target
-rw-r--r-- 1 yeqiang yeqiang 521 10月 14 09:37 nss-user-lookup.target
-rw-r--r-- 1 yeqiang yeqiang 407 10月 14 09:37 paths.target
-rw-r--r-- 1 yeqiang yeqiang 404 10月 14 09:37 plymouth-halt.service
-rw-r--r-- 1 yeqiang yeqiang 418 10月 14 09:37 plymouth-kexec.service
-rw-r--r-- 1 yeqiang yeqiang 413 10月 14 09:37 plymouth-poweroff.service
-rw-r--r-- 1 yeqiang yeqiang 218 10月 14 09:37 plymouth-quit.service
-rw-r--r-- 1 yeqiang yeqiang 224 10月 14 09:37 plymouth-quit-wait.service
-rw-r--r-- 1 yeqiang yeqiang 406 10月 14 09:37 plymouth-reboot.service
-rw-r--r-- 1 yeqiang yeqiang 567 10月 14 09:37 plymouth-start.service
-rw-r--r-- 1 yeqiang yeqiang 315 10月 14 09:37 plymouth-switch-root.service
-rw-r--r-- 1 yeqiang yeqiang 607 10月 14 09:37 poweroff.target
drwxr-xr-x 2 yeqiang yeqiang 47 10月 14 09:37 poweroff.target.wants
-rw-r--r-- 1 yeqiang yeqiang 585 10月 14 09:37 rdma-hw.target
-rw-r--r-- 1 yeqiang yeqiang 886 10月 14 09:37 rdma-load-modules@.service
-rw-r--r-- 1 yeqiang yeqiang 598 10月 14 09:37 reboot.target
drwxr-xr-x 2 yeqiang yeqiang 45 10月 14 09:37 reboot.target.wants
-rw-r--r-- 1 yeqiang yeqiang 454 10月 14 09:37 remote-fs-pre.target
-rw-r--r-- 1 yeqiang yeqiang 530 10月 14 09:37 remote-fs.target
-rw-r--r-- 2 yeqiang yeqiang 692 10月 14 09:37 rescue.service
-rw-r--r-- 1 yeqiang yeqiang 500 10月 14 09:37 rescue.target
-rw-r--r-- 1 yeqiang yeqiang 182 10月 14 09:37 rngd.service
-rw-r--r-- 1 yeqiang yeqiang 548 10月 14 09:37 rpcbind.target
-rw-r--r-- 1 yeqiang yeqiang 457 10月 14 09:37 shutdown.target
-rw-r--r-- 1 yeqiang yeqiang 410 10月 14 09:37 sigpwr.target
-rw-r--r-- 1 yeqiang yeqiang 462 10月 14 09:37 slices.target
-rw-r--r-- 1 yeqiang yeqiang 409 10月 14 09:37 sockets.target
drwxr-xr-x 2 yeqiang yeqiang 167 10月 14 09:37 sockets.target.wants
-rw-r--r-- 1 yeqiang yeqiang 402 10月 14 09:37 swap.target
-rw-r--r-- 1 yeqiang yeqiang 566 10月 14 09:37 sysinit.target
drwxr-xr-x 2 yeqiang yeqiang 4096 10月 14 09:37 sysinit.target.wants
-rw-r--r-- 1 yeqiang yeqiang 1136 10月 14 09:37 sys-kernel-config.mount
-rw-r--r-- 1 yeqiang yeqiang 1415 10月 14 09:37 syslog.socket
-rw-r--r-- 1 yeqiang yeqiang 727 10月 14 09:37 systemd-ask-password-console.path
-rw-r--r-- 1 yeqiang yeqiang 745 10月 14 09:37 systemd-ask-password-console.service
-rw-r--r-- 1 yeqiang yeqiang 454 10月 14 09:37 systemd-ask-password-plymouth.path
-rw-r--r-- 1 yeqiang yeqiang 439 10月 14 09:37 systemd-ask-password-plymouth.service
-rw-r--r-- 1 yeqiang yeqiang 705 10月 14 09:37 systemd-fsck@.service
-rw-r--r-- 1 yeqiang yeqiang 594 10月 14 09:37 systemd-halt.service
-rw-r--r-- 1 yeqiang yeqiang 680 10月 14 09:37 systemd-hibernate-resume@.service
-rw-r--r-- 1 yeqiang yeqiang 655 10月 14 09:37 systemd-journald-audit.socket
-rw-r--r-- 1 yeqiang yeqiang 1154 10月 14 09:37 systemd-journald-dev-log.socket
-rw-r--r-- 1 yeqiang yeqiang 1786 10月 14 09:37 systemd-journald.service
-rw-r--r-- 1 yeqiang yeqiang 906 10月 14 09:37 systemd-journald.socket
-rw-r--r-- 1 yeqiang yeqiang 601 10月 14 09:37 systemd-kexec.service
-rw-r--r-- 1 yeqiang yeqiang 1019 10月 14 09:37 systemd-modules-load.service
-rw-r--r-- 1 yeqiang yeqiang 575 10月 14 09:37 systemd-poweroff.service
-rw-r--r-- 1 yeqiang yeqiang 1175 10月 14 09:37 systemd-random-seed.service
-rw-r--r-- 1 yeqiang yeqiang 568 10月 14 09:37 systemd-reboot.service
-rw-r--r-- 1 yeqiang yeqiang 705 10月 14 09:37 systemd-sysctl.service
-rw-r--r-- 1 yeqiang yeqiang 747 10月 14 09:37 systemd-tmpfiles-setup-dev.service
-rw-r--r-- 1 yeqiang yeqiang 787 10月 14 09:37 systemd-tmpfiles-setup.service
-rw-r--r-- 1 yeqiang yeqiang 650 10月 14 09:37 systemd-udevd-control.socket
-rw-r--r-- 1 yeqiang yeqiang 624 10月 14 09:37 systemd-udevd-kernel.socket
-rw-r--r-- 1 yeqiang yeqiang 1354 10月 14 09:37 systemd-udevd.service
-rw-r--r-- 1 yeqiang yeqiang 863 10月 14 09:37 systemd-udev-settle.service
-rw-r--r-- 1 yeqiang yeqiang 763 10月 14 09:37 systemd-udev-trigger.service
-rw-r--r-- 1 yeqiang yeqiang 650 10月 14 09:37 systemd-vconsole-setup.service
-rw-r--r-- 1 yeqiang yeqiang 743 10月 14 09:37 systemd-volatile-root.service
-rw-r--r-- 1 yeqiang yeqiang 458 10月 14 09:37 timers.target
-rw-r--r-- 1 yeqiang yeqiang 465 10月 14 09:37 umount.target
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$
anaconda ???
http://t.zoukankan.com/hrhguanli-p-4035413.html
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/initrdImg$ grep install.img * -rn
lib/anaconda-lib.sh:34: for p in $tmpmnt/LiveOS/squashfs.img $tmpmnt/images/install.img $tmpmnt/.treeinfo; do
lib/anaconda-lib.sh:48: for f in $ti_img images/install.img LiveOS/squashfs.img; do
lib/anaconda-lib.sh:110: stage2="images/install.img"
转入 (iso/)images/install.img
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64$ file install.img
install.img: Squashfs filesystem, little endian, version 4.0, 630768584 bytes, 3 inodes, blocksize: 131072 bytes, created: Wed Mar 30 08:41:44 2022
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64$ cd squashfs-root/LiveOS/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS$ file rootfs.img
rootfs.img: Linux rev 1.0 ext4 filesystem data, UUID=c2d569fc-1ea9-4e1a-9bea-6606dca70c4e, volume name "Anaconda" (needs journal recovery) (extents) (64bit) (large files) (huge files)
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS$
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ll
总用量 64
dr-xr-xr-x 2 root root 4096 2022-03-13 08:00:00 afs
lrwxrwxrwx 1 root root 7 2022-03-13 08:00:00 bin -> usr/bin
dr-xr-xr-x 2 root root 4096 2022-03-30 16:39:23 boot
drwxr-xr-x 2 root root 4096 2022-03-30 16:39:17 dev
drwxr-xr-x 89 root root 4096 2022-03-30 16:39:23 etc
lrwxrwxrwx 1 root root 12 2022-03-30 16:39:13 firmware -> lib/firmware
lrwxrwxrwx 1 root root 7 2022-03-13 08:00:00 lib -> usr/lib
lrwxrwxrwx 1 root root 9 2022-03-13 08:00:00 lib64 -> usr/lib64
drwx------ 2 root root 16384 2022-03-30 16:39:31 lost+found
drwxr-xr-x 2 root root 4096 2022-03-30 16:39:13 mnt
lrwxrwxrwx 1 root root 11 2022-03-30 16:39:13 modules -> lib/modules
dr-xr-xr-x 2 root root 4096 2022-03-30 16:33:43 proc
dr-xr-x--- 2 root root 4096 2022-03-30 16:39:13 root
drwxr-xr-x 13 root root 4096 2022-03-30 16:39:13 run
lrwxrwxrwx 1 root root 8 2022-03-13 08:00:00 sbin -> usr/sbin
dr-xr-xr-x 2 root root 4096 2022-03-30 16:33:43 sys
drwxrwxrwt 2 root root 4096 2022-03-30 16:39:17 tmp
drwxr-xr-x 10 root root 4096 2022-03-30 16:39:17 usr
drwxr-xr-x 10 root root 4096 2022-03-30 16:39:17 var
anaconda相关程序及配置
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ls usr/sbin/anaconda
usr/sbin/anaconda
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ file usr/sbin/anaconda
usr/sbin/anaconda: Python script, ASCII text executable
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ls etc/anaconda
anaconda.conf conf.d product.d
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ find etc/anaconda
etc/anaconda
etc/anaconda/product.d
etc/anaconda/product.d/fedora-silverblue.conf
etc/anaconda/product.d/rhev.conf
etc/anaconda/product.d/scientific-linux.conf
etc/anaconda/product.d/fedora-workstation.conf
etc/anaconda/product.d/fedora.conf
etc/anaconda/product.d/openeuler.conf
etc/anaconda/product.d/fedora-atomic-host.conf
etc/anaconda/product.d/centos.conf
etc/anaconda/product.d/fedora-workstation-live.conf
etc/anaconda/product.d/ovirt.conf
etc/anaconda/product.d/fedora-server.conf
etc/anaconda/product.d/rhel.conf
etc/anaconda/anaconda.conf
etc/anaconda/conf.d
etc/anaconda/conf.d/00-do-nothing.conf
etc/anaconda/conf.d/01-still-do-nothing.conf
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ls usr/lib/systemd/system/anaconda*
usr/lib/systemd/system/anaconda-direct.service
usr/lib/systemd/system/anaconda-nm-config.service
usr/lib/systemd/system/anaconda-noshell.service
usr/lib/systemd/system/anaconda-pre.service
usr/lib/systemd/system/anaconda.service
usr/lib/systemd/system/anaconda-shell@.service
usr/lib/systemd/system/anaconda-sshd.service
usr/lib/systemd/system/anaconda.target
usr/lib/systemd/system/anaconda-tmux@.service
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ll usr/share/anaconda/
总用量 68
drwxr-xr-x 3 root root 4096 2022-03-30 16:36:53 addons
-rw-r--r-- 1 root root 5576 2022-03-22 08:00:00 anaconda-gtk.css
-rw-r--r-- 1 root root 13383 2019-07-31 23:37:07 anaconda_options.txt
drwxr-xr-x 2 root root 4096 2022-03-30 16:35:52 boot
drwxr-xr-x 4 root root 4096 2022-03-30 16:36:52 dbus
drwxr-xr-x 2 root root 4096 2022-03-30 16:36:52 gnome
-rw-r--r-- 1 root root 494 2018-06-08 05:31:59 instperf.p
-rw-r--r-- 1 root root 718 2022-03-22 08:00:00 interactive-defaults.ks
drwxr-xr-x 3 root root 4096 2022-03-30 16:36:52 pixmaps
drwxr-xr-x 2 root root 4096 2022-03-30 16:36:52 post-scripts
-rw-r--r-- 1 root root 1247 2022-03-22 08:00:00 tmux.conf
drwxr-xr-x 4 root root 4096 2022-03-30 16:36:52 ui
drwxr-xr-x 3 root root 4096 2022-03-22 08:00:00 window-manager
yeqiang@yeqiang-PC:~/tmp/openEuler分析/aarch64/squashfs-root/LiveOS/mntRootfsImg$ ll usr/lib64/python3.9/site-packages/pyanaconda/
总用量 544
-rw-r--r-- 1 root root 8436 2020-02-04 05:53:15 addons.py
-rw-r--r-- 1 root root 2459 2020-03-17 21:04:36 anaconda_loggers.py
-rw-r--r-- 1 root root 13132 2020-03-17 21:04:36 anaconda_logging.py
-rw-r--r-- 1 root root 11012 2022-03-22 08:00:00 anaconda.py
-rw-r--r-- 1 root root 26484 2022-03-22 08:00:00 argument_parsing.py
drwxr-xr-x 6 root root 4096 2022-03-30 16:36:52 core
-rw-r--r-- 1 root root 13846 2022-03-22 08:00:00 display.py
-rw-r--r-- 1 root root 12505 2020-05-20 00:56:55 errors.py
-rw-r--r-- 1 root root 16723 2020-04-29 20:46:20 exception.py
-rw-r--r-- 1 root root 2036 2020-01-29 22:25:53 flags.py
-rw-r--r-- 1 root root 31407 2020-02-14 00:12:15 geoloc.py
-rw-r--r-- 1 root root 0 2018-06-08 05:31:59 __init__.py
-rw-r--r-- 1 root root 25909 2022-03-22 08:00:00 input_checking.py
-rw-r--r-- 1 root root 18815 2022-03-22 08:00:00 installation.py
-rw-r--r-- 1 root root 18315 2020-02-25 02:06:12 installation_tasks.py
drwxr-xr-x 3 root root 4096 2022-03-30 16:36:52 isys
-rwxr-xr-x 1 root root 67664 2022-03-22 08:00:00 _isys.so
-rw-r--r-- 1 root root 4616 2022-03-22 08:00:00 kexec.py
-rw-r--r-- 1 root root 6971 2022-03-22 08:00:00 keyboard.py
-rw-r--r-- 1 root root 21402 2022-03-22 08:00:00 kickstart.py
-rw-r--r-- 1 root root 6843 2020-02-04 05:53:15 lifecycle.py
-rw-r--r-- 1 root root 26319 2020-01-13 23:46:27 localization.py
drwxr-xr-x 14 root root 4096 2022-03-30 16:36:52 modules
-rw-r--r-- 1 root root 23530 2022-03-22 08:00:00 network.py
-rw-r--r-- 1 root root 11199 2022-03-22 08:00:00 ntp.py
drwxr-xr-x 6 root root 4096 2022-03-30 16:36:52 payload
-rw-r--r-- 1 root root 2840 2020-04-22 02:26:29 product.py
-rw-r--r-- 1 root root 1815 2020-02-04 05:53:15 progress.py
-rw-r--r-- 1 root root 6923 2020-04-22 02:26:32 pwpolicy.py
drwxr-xr-x 2 root root 4096 2022-03-30 16:39:23 __pycache__
-rw-r--r-- 1 root root 2734 2020-02-04 05:53:15 queuefactory.py
-rw-r--r-- 1 root root 19342 2020-04-22 02:26:32 rescue.py
-rw-r--r-- 1 root root 4597 2020-04-22 02:26:29 safe_dbus.py
-rw-r--r-- 1 root root 2575 2020-02-04 05:53:15 screensaver.py
-rw-r--r-- 1 root root 6856 2020-02-04 05:53:15 simpleconfig.py
-rw-r--r-- 1 root root 14284 2022-03-22 08:00:00 startup_utils.py
-rw-r--r-- 1 root root 9488 2022-03-22 08:00:00 threading.py
-rw-r--r-- 1 root root 4940 2020-04-22 02:26:29 timezone.py
drwxr-xr-x 7 root root 4096 2022-03-30 16:36:52 ui
-rw-r--r-- 1 root root 65 2022-03-22 08:00:00 version.py
-rw-r--r-- 1 root root 11657 2019-04-03 00:21:19 vnc.py
20.03 x86_64
EFI/BOOT/grub.cfg
menuentry 'Install openEuler 20.03 LTS' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-20.03-LTS-x86_64 quiet
initrdefi /images/pxeboot/initrd.img
}
yeqiang@yeqiang-PC:/run/user/1000/gvfs/archive:host=file%253A%252F%252F%252Fhome%252Fyeqiang%252FDownloads%252Fos%252FopenEuler-20.03-LTS-x86_64-dvd.iso$ ll images/install.img
-r-------- 1 yeqiang yeqiang 795021312 2020-03-25 11:39:22 images/install.img
yeqiang@yeqiang-PC:/run/user/1000/gvfs/archive:host=file%253A%252F%252F%252Fhome%252Fyeqiang%252FDownloads%252Fos%252FopenEuler-20.03-LTS-x86_64-dvd.iso$ cp images/install.img ~/tmp/openEuler分析/x86_64/
cd ~/tm yeqiang@yeqiang-PC:/run/user/1000/gvfs/archive:host=file%253A%252F%252F%252Fhome%252Fyeqiang%252FDownloads%252Fos%252FopenEuler-20.03-LTS-x86_64-dvd.iso$ cd ~/tmp/openEuler分析/x86_64/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ ls
install.img
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ file install.img
install.img: Squashfs filesystem, little endian, version 4.0, 795019078 bytes, 3 inodes, blocksize: 131072 bytes, created: Wed Mar 25 03:39:22 2020
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ unsquashfs install.img
Parallel unsquashfs: Using 6 processors
1 inodes (24576 blocks) to write
[=======================================================================================================================================================================================================================================================================/] 24576/24576 100%
created 1 files
created 2 directories
created 0 symlinks
created 0 devices
created 0 fifos
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ ll
总用量 776388
-r-------- 1 yeqiang yeqiang 795021312 2022-10-14 10:11:34 install.img
drwxr-xr-x 3 yeqiang yeqiang 28 2020-03-25 11:37:01 squashfs-root
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ cd squashfs-root/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$ ls
LiveOS
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$ cd LiveOS/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ ll
总用量 3062016
-rw-r--r-- 1 yeqiang yeqiang 3221225472 2020-03-25 11:37:40 rootfs.img
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ mkdir rootfsImg
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ sudo mount rootfs.img rootfsImg/
请输入密码:
验证成功
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ cd rootfs
bash: cd: rootfs: 没有那个文件或目录
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ cd rootfsImg/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS/rootfsImg$ ll
总用量 60
lrwxrwxrwx. 1 root root 7 2020-03-24 04:44:17 bin -> usr/bin
dr-xr-xr-x. 2 root root 4096 2020-03-25 11:36:57 boot
drwxr-xr-x 2 root root 4096 2020-03-25 11:36:53 dev
drwxr-xr-x. 96 root root 4096 2020-03-25 11:36:57 etc
lrwxrwxrwx. 1 root root 12 2020-03-25 11:36:51 firmware -> lib/firmware
lrwxrwxrwx. 1 root root 7 2020-03-24 04:44:17 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 2020-03-24 04:44:17 lib64 -> usr/lib64
drwx------. 2 root root 16384 2020-03-25 11:37:02 lost+found
drwxr-xr-x. 2 root root 4096 2020-03-25 11:36:51 mnt
lrwxrwxrwx. 1 root root 11 2020-03-25 11:36:51 modules -> lib/modules
dr-xr-xr-x 2 root root 4096 2020-03-24 04:44:17 proc
dr-xr-x---. 2 root root 4096 2020-03-25 11:36:51 root
drwxr-xr-x. 19 root root 4096 2020-03-25 11:34:34 run
lrwxrwxrwx. 1 root root 8 2020-03-24 04:44:17 sbin -> usr/sbin
dr-xr-xr-x 2 root root 4096 2020-03-24 04:44:17 sys
drwxrwxrwt. 2 root root 4096 2020-03-25 11:36:53 tmp
drwxr-xr-x. 10 root root 4096 2020-03-25 11:36:53 usr
drwxr-xr-x. 12 root root 4096 2020-03-25 11:36:53 var
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS/rootfsImg$
/usr/bin/zenity
https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/9/html-single/customizing_anaconda/index
修改
root@yeqiang-PC:/home/yeqiang/tmp/openEuler分析/x86_64/squashfs-root/LiveOS# ls rootfsImg/usr/share/anaconda/pixmaps/
anaconda-password-show-off.svg anaconda-password-show-on.svg rnotes sidebar-bg.png sidebar-logo.png topbar-bg.png
root@yeqiang-PC:/home/yeqiang/tmp/openEuler分析/x86_64/squashfs-root/LiveOS# ls rootfsImg/.buildstamp
rootfsImg/.buildstamp
root@yeqiang-PC:/home/yeqiang/tmp/openEuler分析/x86_64/squashfs-root/LiveOS# cat rootfsImg/.buildstamp
[Main]
Product=oooopenEulerrrr
Version=2220.03-LTS
BugURL=your distribution provided bug reporting tool
IsFinal=True
UUID=202003250336.x86_64
[Compose]
Lorax=29.16-1
重新打包
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root/LiveOS$ sudo umount rootfsImg/
请输入密码:
验证成功
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ cd squashfs-root/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$ ll
总用量 0
drwxr-xr-x 2 yeqiang yeqiang 32 2022-10-14 11:00:22 LiveOS
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$ mksquashfs . ../
install.img squashfs-root/
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$ mksquashfs . ../new-install.img
Parallel mksquashfs: Using 6 processors
Creating 4.0 filesystem on ../new-install.img, block size 131072.
[=======================================================================================================================================================================================================================================================================|] 24576/24576 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 981032.13 Kbytes (958.04 Mbytes)
31.19% of uncompressed filesystem size (3145824.34 Kbytes)
Inode table size 56014 bytes (54.70 Kbytes)
56.90% of uncompressed inode table size (98450 bytes)
Directory table size 48 bytes (0.05 Kbytes)
82.76% of uncompressed directory table size (58 bytes)
Number of duplicate files found 0
Number of inodes 3
Number of files 1
Number of fragments 0
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 2
Number of ids (unique uids + gids) 1
Number of uids 1
yeqiang (1000)
Number of gids 1
yeqiang (1000)
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64/squashfs-root$
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ mv install.img install.img.bak
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ mv new-install.img install.img
iso master,genisoimage fail
power iso ok
修改ISO导致 自检报错,
The media check is complete, the result is: FAIL.
yeqiang@yeqiang-PC:/tmp/iso$ sudo apt install isomd5sum
yeqiang@yeqiang-PC:~/tmp/openEuler分析/x86_64$ implantisomd5 --force /tmp/modify.iso
Inserting md5sum into iso image...
md5 = c5fe3b551fe54ac02242b2a114c9e7c5
Inserting fragment md5sums into iso image...
fragmd5 = 21d78861331baa2af3fa24658bc9fb47ed3a8adbef79baedf7a27ce182d8
frags = 20
Setting supported flag to 0
参考资料:
自定义 Anaconda Red Hat Enterprise Linux 9 | Red Hat Customer Portal