Ubuntu iso9/25/2023 ![]() ![]() GPG_PATH_PW a path to a file containing the password for key.GPG_NAME should be the just-generated key ID.Modify the script’s variables as follows: Download this script and copy it into /opt/cdrom/. Now we need to re-index our repository within /cdrom. #you may want to add additional components (e.g., pool/devel/)Īnd then copy your deb packages into the pool folder you created (e.g., cp /Download/debs/*.deb /opt/cd-image/pool/extras/). Create a new folder to for the new packages: The last step is to add the packages which are used during installation to the CD-ROM repository. Gpg -digest-algo SHA256 -sign -bao filesystem.squashfs #Note that you may want to specify your key with option -u YOURKEYID squashfs-root/ | cut -f1 > /opt/cd-image/install/filesystem.size Mksquashfs squashfs-root/ filesystem.squashfsĭu -sx -block-size=1. Now the keys must be imported into squashfs on the ISO image:Ĭhroot squashfs-root dpkg-query -W -showformat='$\n' > /opt/cd-image/install/filesystem.manifest Gpg -export IMPORTED-KEYS YOUR-KEY > ubuntu-archive-keyring.gpgĭpkg-buildpackage -rfakeroot -m"Your Name -kYOUR-KEYĬp ubuntu-keyring*deb /opt/cd-image/pool/main/u/ubuntu-keyring #find out which keys have beend imported and collect the ID of the keys (called IMPORTED-KEYS) and of the just created key (called YOUR-KEY) Then, integrate the newly generated key in the ubuntu-keyring package: Thus the ubuntu-keyring package must include a custom key, which will be used to sign our new repository.įirst, let’s generate the key: gpg -gen-keyĬheck the key just generated gpg -list-key Moreover, the Ubuntu installation process verifies the repository keys by checking the GPG key against the public keys held in the package ubuntu-keyring. New packages must be added to the repository within the CD-ROM and must be re-indexed taking into consideration the Ubuntu repository structure. This section describes how to add additional packages to the ISO image, so that an internet connection during installation is not necessary. To enable the configuration, the boot options in /opt/cd-image/isolinux/txt.cfg should be changed by adding the following lines: label autoinstall menu label ^Automatically install Ubuntu kernel /install/vmlinuz append file=/cdrom/preseed/ed vga=788 initrd=/install/initrd.gz ks=cdrom:/ quiet Custom and offline installation We assume that the file is in /opt/cd-image/. This example should be placed in the ISO image. #A list of deb package can be added in this section. Preseed partman-auto-lvm/no_boot boolean true Preseed partman-lvm/confirm_nooverwrite boolean true ![]() ![]() Logvol swap -name=lv_swap -vgname=vg00 -grow -size=3968 -maxsize=3968 Logvol /storage -fstype=ext4 -name=lv_storage -vgname=vg00 -grow -size=100 Preseed user-setup/allow-password-weak boolean true If additional packages are required, you could add them in the %packages section, but then during the installation phase, internet connectivity will be required (see the next section for a complete offline installation). The following example will automatically configure an Ubuntu system with user root and password admin, and the disk partitioned with LVM (allowing partitions to be changed later on). The unattended installation is based on a kickstart file that contains configuration information for the Ubuntu installation.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |