[Exchange and share] deepinV23 docker镜像的构建测试
Tofloor
poster avatar
fallingstar-ten
deepin
2023-07-19 08:54
Author

在构建过程中需要将deepinV23在虚拟机中加载并提取文件,由于主力机都是v23,目前v23虚拟机软件较难装上,因此在初始的镜像文件等材料上采用了如下:

  1. podman
  2. deepinV23 preview的tar包,来自@川顺页(https://bbs.deepin.org/post/241212)
  3. 下载后运行如下,构建容器,并使用podman-desktop进入容器终端:
xz -d deepin_v23.tar.xz
podman import deepin_v23.tar deepinv23:latest
podman run -d --privileged  -v /home:/home --name deepinv23Beta deepinv23:latest /usr/sbin/init


  1. 在容器内运行如下,试图升级至最新版本,可能是由于版本跨越太大,中间遇到了文件冲突,使用了-force-overwrite进行覆盖:

    apt remove dde-* #试图去除dde桌面
    apt autoremove
    apt update && apt upgrade
    
  2. 结果:

    dpkg: error processing package linux-image-6.1.11-amd64-desktop-hwe (--configure):
     installed linux-image-6.1.11-amd64-desktop-hwe package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-deepin-hwe-amd64:
     linux-image-deepin-hwe-amd64 depends on linux-image-6.1.11-amd64-desktop-hwe; however:
      Package linux-image-6.1.11-amd64-desktop-hwe is not configured yet.
    
    dpkg: error processing package linux-image-deepin-hwe-amd64 (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-image-6.1.11-amd64-desktop-hwe
     linux-image-deepin-hwe-amd64
    
  3. 接着使用 apt remove linux-image-6.1.11-amd64-desktop-hwe进行了处理

  4. 最后结果:

    截图_20230719004516.png太晚了,镜像明天再打包看看能不能行,几个问题:

    1. 还有哪些包能精简
    2. 玲珑包启动不了,怎么删除?
Reply Favorite View the author
All Replies
foxbcd
deepin
2023-07-19 09:59
#1

应该可以用 debootstrap 生成 rootfs 的

Reply View the author
babyfengfjx
Super Moderator
CQA
2023-07-19 21:22
#2

看着就很唬人,牛皮~

Reply View the author
vivian_me
deepin testing team
2023-07-20 00:05
#3

手动点赞like

Reply View the author
绍贝格尔
deepin
2023-07-20 21:37
#4
foxbcd

应该可以用 debootstrap 生成 rootfs 的

生成的rootfs 我可以编译为ARM版本的吗?

开发版提供的是buildroot的

Reply View the author