在 uck Ubuntu 自定义期间安装包

Install packages during uck Ubuntu customization

我正在按照 this website 中的步骤自定义我的 Ubuntu 图片。解压干净的 .iso 后,我将一些文件添加到 "remaster" 并且我还想安装一些应用程序(例如 wireshark),因此当系统使用自定义映像启动时,无需安装任何东西。我运行以下脚本:

sudo uck-remaster-clean
sudo uck-remaster-unpack-iso my.iso
sudo uck-remaster-unpack-rootfs

// .. add desired files to the remaster
sudo apt-get install wireshark

sudo uck-remaster-pack-rootfs -c
sudo uck-remaster-pack-iso -g myNew.iso

但是,wireshark 安装在我运行正在运行脚本的机器上,而不是在 remaster-root 系统中。我需要修改什么才能在解压缩的 ISO 上安装应用程序?有可能吗?

你跳过了一步,你需要sudo uck-remaster-chroot-rootfs之前。

Now you can install packages with apt-get and perform all kinds of customizations.