Re: [gentoo-user] gentoo and kickstart files

2020-11-22 Thread Gerrit Kuehn


On Sun, 22 Nov 2020 10:12:47 +
Neil Bothwick  wrote:

> ISTR someone was working on an Ansible playbook to automate
> installation.

One of these?
https://github.com/stefangweichinger/ansible-gentoo
https://github.com/grizz/ansible-gentoo
https://github.com/agaffney/ansible-gentoo_install


cu
  Gerrit



Re: [gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread Rich Freeman
On Sun, Nov 22, 2020 at 6:39 PM  wrote:
>
> make menuconfig
> HOSTCC script/kconfig/mconf.o
>  : internal compiler error: Illegal instruction
>
> Even if I try to run: emerge --info  I get:
> Illegal instruction
>

Is this running on the same CPU, or are you migrating to a different
system?  If the CPU changes then you need to make sure that everything
on your system was built with a -march compatible with your new
system.

When you plan on migrating between systems it is a good idea to set
-march very conservatively, such as -march=x86-64.  It is safe to set
-mtune to whatever you want, but -march produces code that only runs
on that particular CPU.  Of course if the new CPU supports EVERY
instruction that the previous CPU has then you're fine, but you'd be
surprised how many oddball instructions aren't on various CPUs.

-- 
Rich



Re: [gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread thelma
On 11/22/2020 06:16 PM, Jack wrote:
> On 2020.11.22 20:09, the...@sys-concept.com wrote:
>> On 11/22/2020 05:25 PM, Michael wrote:
>> > On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com wrote:
>> >> OK, I used Gparted (Bootable usb) to copy partition from:
>> >> Western Digital driver, usually:
>> >> /dev/sda1 etc
>> >>
>> >> to M.2 SSD
>> >> /dev/ nvme0n1p1 etc
>> >>
>> >> I can boot M.2 drive, but the x-server doesn't work (even though I use
>> >> same graphical card).  Network is not working (easy fix, new driver
>> >> needs to be compiled IN) but there is a bigger problem.
>> >
>> > If you have cloned each partition from the old to the new disk, then
>> the new
>> > disk should work exactly as the old disk does.  I mean, it should
>> have the
>> > same kernel, the same / filesystem, the same modules, etc.
>> >
>> > Since the new disk is an nvme drive, you will need additional
>> drivers - should
>> > these not be available in the old kernel.
>> >
>> >
>> >> Duplicating was easy, but when I try to recompile a kernel I get an
>> error:
>> >>
>> >> make menuconfig
>> >> HOSTCC script/kconfig/mconf.o
>> >>  : internal compiler error: Illegal instruction
>> >>
>> >> Even if I try to run: emerge --info  I get:
>> >> Illegal instruction
>> >>
>> >> In addition my fstab doesn't look correct (but it works)
>> >> /dev/sda1    /boot    ext2
>> >>
>> >> It should be something like:
>> >> /dev/nvme0n1p1   /boot   ext2
>> >
>> > Do you have both disks connected to the MoBo when you're trying to
>> boot from
>> > the new disk?
>>
>> Yes, they are both connected
>>
>> > Have you changed the UUIDs on the new partitions?
>>
>> Never used UUID in fstab. Do I just run: blkid|grep UUID
>> and copy it to fstab.
>>
>> > Have you installed the boot manager on the new disk (if using MBR)?
>>
>> I just copied the whole MBR to a new disk and it worked, the system
>> boots, but nothing can be compiled.
> I would confirm that you are really booted from the new disk and not the
> old one.  It is possible that the MBR from the new disk was used to
> boot, but if /etc/fstab says /boot is mounted from /dev/sda1 then that
> does seem wrong.  I almost always put an empty file in the root of each
> partition named for the disk/partition just so I can be sure what's
> actually mounted.  Is /etc/fstab identical on both disks?  What does
> fstab say about where / is mounted from?

You are absolutely correct.  I was booting the whole time the Western
Digital (old drive). :-/  My mistake, once I removed the WD drive the
new M.2 SSD doesn't even boot.
I think the easiest way would be to re-install the Getnoo from scratch
and dig out the old programs I need from "attic".  Mixing/moving SSD
(sda) and M2.2 (nvme0n1) and transferring partitions might not be as easy.




Re: [gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread Jack

On 2020.11.22 20:09, the...@sys-concept.com wrote:

On 11/22/2020 05:25 PM, Michael wrote:
> On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com  
wrote:

>> OK, I used Gparted (Bootable usb) to copy partition from:
>> Western Digital driver, usually:
>> /dev/sda1 etc
>>
>> to M.2 SSD
>> /dev/ nvme0n1p1 etc
>>
>> I can boot M.2 drive, but the x-server doesn't work (even though I  
use

>> same graphical card).  Network is not working (easy fix, new driver
>> needs to be compiled IN) but there is a bigger problem.
>
> If you have cloned each partition from the old to the new disk,  
then the new
> disk should work exactly as the old disk does.  I mean, it should  
have the

> same kernel, the same / filesystem, the same modules, etc.
>
> Since the new disk is an nvme drive, you will need additional  
drivers - should

> these not be available in the old kernel.
>
>
>> Duplicating was easy, but when I try to recompile a kernel I get  
an error:

>>
>> make menuconfig
>> HOSTCC script/kconfig/mconf.o
>>  : internal compiler error: Illegal instruction
>>
>> Even if I try to run: emerge --info  I get:
>> Illegal instruction
>>
>> In addition my fstab doesn't look correct (but it works)
>> /dev/sda1/bootext2
>>
>> It should be something like:
>> /dev/nvme0n1p1   /boot   ext2
>
> Do you have both disks connected to the MoBo when you're trying to  
boot from

> the new disk?

Yes, they are both connected

> Have you changed the UUIDs on the new partitions?

Never used UUID in fstab. Do I just run: blkid|grep UUID
and copy it to fstab.

> Have you installed the boot manager on the new disk (if using MBR)?

I just copied the whole MBR to a new disk and it worked, the system
boots, but nothing can be compiled.
I would confirm that you are really booted from the new disk and not  
the old one.  It is possible that the MBR from the new disk was used to  
boot, but if /etc/fstab says /boot is mounted from /dev/sda1 then that  
does seem wrong.  I almost always put an empty file in the root of each  
partition named for the disk/partition just so I can be sure what's  
actually mounted.  Is /etc/fstab identical on both disks?  What does  
fstab say about where / is mounted from?




Re: [gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread thelma


On 11/22/2020 05:25 PM, Michael wrote:
> On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com wrote:
>> OK, I used Gparted (Bootable usb) to copy partition from:
>> Western Digital driver, usually:
>> /dev/sda1 etc
>>
>> to M.2 SSD
>> /dev/ nvme0n1p1 etc
>>
>> I can boot M.2 drive, but the x-server doesn't work (even though I use
>> same graphical card).  Network is not working (easy fix, new driver
>> needs to be compiled IN) but there is a bigger problem.
> 
> If you have cloned each partition from the old to the new disk, then the new 
> disk should work exactly as the old disk does.  I mean, it should have the 
> same kernel, the same / filesystem, the same modules, etc.
> 
> Since the new disk is an nvme drive, you will need additional drivers - 
> should 
> these not be available in the old kernel.
> 
> 
>> Duplicating was easy, but when I try to recompile a kernel I get an error:
>>
>> make menuconfig
>> HOSTCC script/kconfig/mconf.o
>>  : internal compiler error: Illegal instruction
>>
>> Even if I try to run: emerge --info  I get:
>> Illegal instruction
>>
>> In addition my fstab doesn't look correct (but it works)
>> /dev/sda1/bootext2
>>
>> It should be something like:
>> /dev/nvme0n1p1   /boot   ext2
> 
> Do you have both disks connected to the MoBo when you're trying to boot from 
> the new disk?

Yes, they are both connected

> Have you changed the UUIDs on the new partitions?

Never used UUID in fstab. Do I just run: blkid|grep UUID
and copy it to fstab.

> Have you installed the boot manager on the new disk (if using MBR)?

I just copied the whole MBR to a new disk and it worked, the system
boots, but nothing can be compiled.




Re: [gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread Michael
On Sunday, 22 November 2020 23:39:44 GMT the...@sys-concept.com wrote:
> OK, I used Gparted (Bootable usb) to copy partition from:
> Western Digital driver, usually:
> /dev/sda1 etc
> 
> to M.2 SSD
> /dev/ nvme0n1p1 etc
> 
> I can boot M.2 drive, but the x-server doesn't work (even though I use
> same graphical card).  Network is not working (easy fix, new driver
> needs to be compiled IN) but there is a bigger problem.

If you have cloned each partition from the old to the new disk, then the new 
disk should work exactly as the old disk does.  I mean, it should have the 
same kernel, the same / filesystem, the same modules, etc.

Since the new disk is an nvme drive, you will need additional drivers - should 
these not be available in the old kernel.


> Duplicating was easy, but when I try to recompile a kernel I get an error:
> 
> make menuconfig
> HOSTCC script/kconfig/mconf.o
>  : internal compiler error: Illegal instruction
> 
> Even if I try to run: emerge --info  I get:
> Illegal instruction
> 
> In addition my fstab doesn't look correct (but it works)
> /dev/sda1/bootext2
> 
> It should be something like:
> /dev/nvme0n1p1   /boot   ext2

Do you have both disks connected to the MoBo when you're trying to boot from 
the new disk?

Have you changed the UUIDs on the new partitions?

Have you installed the boot manager on the new disk (if using MBR)?

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] duplicate gentoo system - errors

2020-11-22 Thread thelma
OK, I used Gparted (Bootable usb) to copy partition from:
Western Digital driver, usually:
/dev/sda1 etc

to M.2 SSD
/dev/ nvme0n1p1 etc

I can boot M.2 drive, but the x-server doesn't work (even though I use
same graphical card).  Network is not working (easy fix, new driver
needs to be compiled IN) but there is a bigger problem.

Duplicating was easy, but when I try to recompile a kernel I get an error:

make menuconfig
HOSTCC script/kconfig/mconf.o
 : internal compiler error: Illegal instruction

Even if I try to run: emerge --info  I get:
Illegal instruction

In addition my fstab doesn't look correct (but it works)
/dev/sda1/bootext2

It should be something like:
/dev/nvme0n1p1   /boot   ext2

-- 
Thelma



Re: [gentoo-user] SOLVED Re: error trying to mount Samsung: Galaxy android models (MTP)

2020-11-22 Thread edward m
On Sun, Nov 22, 2020 at 6:53 AM Dr Rainer Woitok 
wrote:

> Edward and Nuno,
>
> On Sunday, 2020-11-22 11:35:16 +, Nuno Silva wrote:
>
> > ...
> > I think with MTP there can be issues owing to implementation details -
> > some phones will have trouble with some MTP tools.
> >
> > If you can, please try sys-fs/jmtpfs.
>
> Hmm, according to
>
>https://packages.gentoo.org/packages/sys-fs/jmtpfs
>
> this package looks rather unmaintained,  last changed  in November 2013.
> There are also
>
>https://packages.gentoo.org/packages/sys-fs/mtpfs
>
> which doesn't look much better, maintenance-wise, and
>
>https://packages.gentoo.org/packages/sys-fs/simple-mtpfs
>
> which at least seems maintained.   There are quite a few  other packages
> listed at
>
>https://wiki.gentoo.org/wiki/MTP
>
> where it's also mentioned  that Thunar can  connect to MTP  file systems
> using the "xfce-extra/thunar-volman" package.
>
> Personally I haven't yet used  any of these  because I'm quite satisfied
> using "adb" from package "dev-util/android-tools".
>
> Sincerely,
>   Rainer
>



simple-mtpfs worked instead of  mtpfs. Also the android phone screen needs
to  be unlocked and  answer 'allow' when a pop up
message appears. After doing that i was able to mount the android phone


Re: [gentoo-user] Hugin panoramic picture and auto control points.

2020-11-22 Thread Dale
Dale wrote:
> Meik Frischke wrote:
>> Hi Dale,
>>
>> Hugin has a USE-flag for SIFT which pulls autopano-sift-C as a
>> dependency: sift? ( media-gfx/autopano-sift-C ). The SIFT algorithm
>> used to be patented [1] which could be a possible reason why the
>> dependency was not enabled by default, though you might have to ask
>> the maintainer for that. The patent is expired as of this year, so
>> there is probably little reason to not enable the USE flag for you.
>> "autopano-noop" is an obsolete wrapper [2] for autopano-sift-C which
>> might be an artifact from an earlier hugin version upgrade.
>> Anyway, good that you got it to work.
>>
>> Sincerely,
>> Meik
>>
>>
>> [1] https://patents.google.com/patent/US6711293B1/en
>> [2] http://manpages.ubuntu.com/manpages/trusty/man1/autopano-noop.1.html
>>
>>
> I already got it working.  I was posting about how to get it to work. 
> Hopefully, if someone googles it, they will find this thread and be able
> to follow how to set it up and it work. 
>
> Since I installed this so long ago, it likely held the old defaults over
> from the past.  It may work on new installs.  Oh, I already had the sift
> USE flag enabled.  Still, the defaults didn't work. 
>
> Interesting to know some history about this tho.  May explain why it was
> the way it was. 
>
> Dale
>
> :-)  :-) 
>

Additional info.  Since I had a backup of the original configuration, I
decided to give the new defaults a test drive.  I clicked the Load
Defaults button and it changed about everything.  The old settings
seemed to have left completely.  Keep in mind, this install goes back
YEARS.  It may be well over a decade old as far as configs go.  I copied
/home over from my previous system.  The new default is Hugin's CPfind. 
I've taken a few panoramic pictures and give it a go.  At first, I did a
couple control points manually for each set if pics.  Then on the last
two sets, I loaded the images and just hit Create Control Points and let
'er go.  After clicking all the other things and telling it to stitch,
they turned out awesome.  I looked for errors in the picture but I
couldn't find any.  Since my pics were mostly of trees, I looked for
trees that were bent or out of line in some way.  I couldn't find
anything wrong.  Darn software does a awesome job.  :-D 

Only downside, the resulting files are pretty large even when I scale
them down a bit.  Most image hosting sites cut off file sizes and mine
are to big.  Gotta find a solution for that problem, new image site
maybe?? 

Thanks for the reply Meik.  It got me to test some really new settings. 
Something I should have done a LONG time ago. 

Dale

:-)  :-) 



[gentoo-user] Re: error trying to mount Samsung: Galaxy android models (MTP)

2020-11-22 Thread nunojsilva
On 2020-11-22, edward m wrote:

> hi, i receive an error when trying to mount an android phone under
> gentoo. im  wondering if a fix, workaround exists or more likely its a bug.
> thanks in advance.

I think with MTP there can be issues owing to implementation details -
some phones will have trouble with some MTP tools.

If you can, please try sys-fs/jmtpfs.


>
>
> error:
> mtpfs AndroidDevice/
> Listing raw device(s)
> Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
>Found 1 device(s):
>Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 12
> Attempting to connect device
> Error 1: Get Storage information failed.
> Error 2: PTP Layer error 02fe: get_all_metadata_fast(): could not get
> proplist of all objects.
> Error 2: Error 02fe: PTP Data Expected
> Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get
> object handles.
> Error 2: Error 02fe: PTP Data Expected
> Listing File Information on Device with name: Galaxy A10e
> LIBMTP_Get_Storage() failed:-1

-- 
Nuno Silva




[gentoo-user] Re: error trying to mount Samsung: Galaxy android models (MTP)

2020-11-22 Thread Dr Rainer Woitok
Edward and Nuno,

On Sunday, 2020-11-22 11:35:16 +, Nuno Silva wrote:

> ...
> I think with MTP there can be issues owing to implementation details -
> some phones will have trouble with some MTP tools.
> 
> If you can, please try sys-fs/jmtpfs.

Hmm, according to

   https://packages.gentoo.org/packages/sys-fs/jmtpfs

this package looks rather unmaintained,  last changed  in November 2013.
There are also

   https://packages.gentoo.org/packages/sys-fs/mtpfs

which doesn't look much better, maintenance-wise, and

   https://packages.gentoo.org/packages/sys-fs/simple-mtpfs

which at least seems maintained.   There are quite a few  other packages
listed at

   https://wiki.gentoo.org/wiki/MTP

where it's also mentioned  that Thunar can  connect to MTP  file systems
using the "xfce-extra/thunar-volman" package.

Personally I haven't yet used  any of these  because I'm quite satisfied
using "adb" from package "dev-util/android-tools".

Sincerely,
  Rainer



Re: [gentoo-user] gentoo and kickstart files

2020-11-22 Thread Neil Bothwick
On Sun, 22 Nov 2020 01:12:10 -0700, Dan Egli 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.

ISTR someone was working on an Ansible playbook to automate installation.


-- 
Neil Bothwick

I used to live in the real world, but I got evicted.


pgp8DkVme35a0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ssh key type ed25519

2020-11-22 Thread Michael
On Saturday, 21 November 2020 15:22:03 GMT n952162 wrote:
> I tried to ssh to another machine and got a failing man-in-the-middle
> warning.

When keys have changed at the remote end and the new key is not listed in 
~/.ssh/known_hosts, you will get a warning whether you want to accept the key 
and continue connecting or not.  This is the moment, or ideally in advance of 
this moment, you contact the remote system's sysadmin to find out what the 
fingerprint of the new key might be.


> The fingerprint given to check didn't match that of the target host.  On
> closer inspection, the entries in known_hosts are *ecdsa-sha2-nistp256*
> and the offending key was of type *ed25519*, as reported by the client.
> 
> These are both gentoo machines, relatively recently updated.

Therefore this update seems to have generated new keys and set ed25519 as the 
default.


> Everything on the net talks about how to generate key files of the
> appropriate type, but I'm don't want to generate a key file.
> 
> Apparently, this is a gentoo configuration issue.  USE flags of openssh
> on both machines are the same.
> 
> There are two news items related to ssh, but neither seems relevant.
> 
> Has there been a changed system-wide determination of the key type and
> what would be the best way to make them consistent across all machines?

Take a look in /etc/ssh and/or ~/.ssh/ for the config files to set preferences 
for ssh client and sshd server either generically or per remote host.  
However, you'll need to be reviewing and adjusting these regularly, because 
ciphers and algos become deprecated when vulnerabilities are discovered.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] gentoo and kickstart files

2020-11-22 Thread Ozgur
  22.11.2020, 11:12, "Dan Egli" :On 11/21/2020 2:26 PM, Jude DaShiell wrote: Does gentoo know about kickstart files and can it use them?   Hello, Also you can see similar sample bash script files for Gentoo installation. https://github.com/tashrifsanil/Gentoo-Install-Scriptshttps://github.com/sormy/gentoo-quick-installer Regards I'm hardly a Gentoo expert, but I'm going to say no on both. Kickstartfiles are designed for the particular installer you're using. I knowthat 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'sYaST or Fedora's anaconda. So there is no program to feed a kickstartfile to. The best thing you can do to make things similiar between hostsis to create your own script that partitions the disks, formats them,mounts them, then proceeds to copy custom files across. Just off the topof my head, it would look something like this, assuming you are usingGPT partitions on a single drive with separate /home partition, with /and /home formatted as ext4:#!/bin/shecho -e "g\nn\n1\n\n+1G\nn\n2\n\n+64G\nn\n\n\nt\n1\n1\nw" | fdisk /dev/sdamkfs.vfat -F32 /dev/sda1mkfs.ext4 /dev/sda2mkfs.ext4 /dev/sda3mount /dev/sda3 /mnt/gentoocd /mnt/gentootar xvfJ /mnt/cdrom/stage3*.xzfor D in proc sys dev tmp; do    mount --rbind /$D $D    mount --make-rslave $D;donecp /mnt/cdrom/use/* /etc/portage/package.usecp /mnt/cdrom/world /mnt/cdrom/chrooted .cp /mnt/cdrom/make.conf etc/portagecp /etc/resolv.conf etcchroot . chrootedAnd then chrooted would look like this:. /etc/profilePKGS=$(cat /world)emerge-webrsyncemerge -f $PKGSemerge $PKGSif [ -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 ;figenkernel --menuconfig allgrub2-config -o /boot/grub/grub.cfgAnd of course, world is what you want listed in the world file. Theeasiest way to do that part is to copy the /var/lib/portage/world fileto the install media (that's where "world" came from above"). If you'renot familiar with fdisk commands, what happens is this:1) make new gpt partition label on the drive2) 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 notneeded, but better safe than sorry.6) write the changes to disk and exitThe 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 willlet portage sort out any dependanciesstage3*.xz - wild card to represent your stage3 tarball.chrooted - script to run in the chrooted environmentmake.conf - the make.conf you want to have.Also, the directory use should exist on the media. This directory willcontain 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 

Re: [gentoo-user] gentoo and kickstart files

2020-11-22 Thread Dan Egli

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