From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01B10138359 for ; Sun, 22 Nov 2020 08:12:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F06FE076B; Sun, 22 Nov 2020 08:12:15 +0000 (UTC) Received: from newideatest.site (jupiter.newideatest.site [209.141.58.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 087A6E03EC for ; Sun, 22 Nov 2020 08:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newideatest.site; s=main; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z3HRojKliLx6g9QsyJbTB0VytxxZUUZ+bHXhGsIJgTU=; b=gS0ce2X7rIl4nQe7psM/20ixW0 F+gjtw9JT33ZhjedktplhHbyHn4KdysCulHhnH30EsBgnkakSyfiXDd8+qbB3l3KQqZ3KEsXmd1Jb IDx8q1A8p1PC7LBpaCpMyuzImTAwBowUz7NXgzFV6QxqbL4I+OSEtezI3nOXFsKY/33sSXfUB1Odv L+OHta1twax/qxEqZgtLEtIjMVRO9/oChnlt+ZLkKp65VqD9czoqug98BzCR/cUNXyGhimLJZPsVg rEppek/fAHATs+gbp0xYjJin5coPv4fPck9++03MZTCnPd/Z5Q8PQ+GomAoCGzFQxxYEe9NIrMdq6 70yxtUnA==; Received: from 65.sub-174-248-156.myvzw.com ([174.248.156.65] helo=[192.168.43.101]) by newideatest.site with esmtpsa (TLS1.2:ECDHE_SECP384R1__RSA_PSS_RSAE_SHA384__CHACHA20_POLY1305:256) (Exim 4.93) (envelope-from ) id 1kgkTX-0080Ew-Vh; Sun, 22 Nov 2020 08:12:00 +0000 Subject: Re: [gentoo-user] gentoo and kickstart files To: gentoo-user@lists.gentoo.org, Jude DaShiell References: From: Dan Egli Message-ID: <74838d1f-a920-c2c9-5924-419ee1e6bd90@newideatest.site> Date: Sun, 22 Nov 2020 01:12:10 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Antivirus: AVG (VPS 201121-4, 11/21/2020), Outbound message X-Antivirus-Status: Clean X-Scanned-By: unscanned primary on newideatest.site (209.141.58.25); Sun, 22 Nov 2020 08:12:00 +0000 X-Archives-Salt: fa7d53b3-1658-4ee6-9aa6-4ec63624b3d5 X-Archives-Hash: 56ad336cc61299897df822e49776ad7f On 11/21/2020 2:26 PM, Jude DaShiell wrote: > Does gentoo know about kickstart files and can it use them? > > I'm hardly a Gentoo expert, but I'm going to say no on both. Kickstart files are designed for the particular installer you're using. I know that a Kickstart file for Fedora won't work on Ubuntu, or even CentOS. The issue here is that Gentoo doesn't HAVE an installer. Not like SUSe's YaST or Fedora's anaconda. So there is no program to feed a kickstart file to. The best thing you can do to make things similiar between hosts is to create your own script that partitions the disks, formats them, mounts them, then proceeds to copy custom files across. Just off the top of my head, it would look something like this, assuming you are using GPT partitions on a single drive with separate /home partition, with / and /home formatted as ext4: #!/bin/sh echo -e "g\nn\n1\n\n+1G\nn\n2\n\n+64G\nn\n\n\nt\n1\n1\nw" | fdisk /dev/sda mkfs.vfat -F32 /dev/sda1 mkfs.ext4 /dev/sda2 mkfs.ext4 /dev/sda3 mount /dev/sda3 /mnt/gentoo cd /mnt/gentoo tar xvfJ /mnt/cdrom/stage3*.xz for D in proc sys dev tmp; do    mount --rbind /$D $D    mount --make-rslave $D; done cp /mnt/cdrom/use/* /etc/portage/package.use cp /mnt/cdrom/world /mnt/cdrom/chrooted . cp /mnt/cdrom/make.conf etc/portage cp /etc/resolv.conf etc chroot . chrooted And then chrooted would look like this: . /etc/profile PKGS=$(cat /world)emerge-webrsync emerge -f $PKGS emerge $PKGS if [ -d /etc/systemd/system ] ; then # using systemd, so let's use systemctl to set the boot programs    systemctl daemon-reload    systemctl enable ; else # using openrc instead   for P in ; do rc-update add $P default; done ; fi genkernel --menuconfig all grub2-config -o /boot/grub/grub.cfg And of course, world is what you want listed in the world file. The easiest way to do that part is to copy the /var/lib/portage/world file to the install media (that's where "world" came from above"). If you're not familiar with fdisk commands, what happens is this: 1) make new gpt partition label on the drive 2) make a new 1G partition (this will be /boot/EFI) 3) make a new 64GB partition (this will be /) 4) make a partition using all remaining space (/home) 5) flag partition 1 as an ESP (EFI System Partition). Probably not needed, but better safe than sorry. 6) write the changes to disk and exit The following files are assumed to be in /root of the install media (automatically mounted on /mnt/cdrom): world - the world file containing the base packages you want. We will let portage sort out any dependancies stage3*.xz - wild card to represent your stage3 tarball. chrooted - script to run in the chrooted environment make.conf - the make.conf you want to have. Also, the directory use should exist on the media. This directory will contain the files that automatically get copied to /etc/portage/package.use in the first script. That's off the top of my head, and may very well be missing some steps, but you get the idea. -- Dan Egli From my Test Server -- This email has been checked for viruses by AVG. https://www.avg.com