Jump to content

Chris Kurlinski

Members
  • Content Count

    34
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Trolling
    Chris Kurlinski got a reaction from cardinal in LXC init.d script   
    Just found an error in the init.d lxc script
    The ebuild depend section is:
    depend() { # be quiet, since we have to run depend() also for the # non-muxed init script, unfortunately. checkconfig 2>/dev/null || return 0 config ${CONFIGFILE} need localmount local _x _if for _x in $(lxc_get_net_link_type); do _if=${_x%:*} case "${_x##*:}" in # when the network type is set to phys, we can make use of a # network service (for instance to set it up before we disable # the net_admin capability), but we might also not set it up # at all on the host and leave the net_admin capable service # to take care of it. phys) use net.${_if} ;; *) need net.${_if} ;; esac done } But the net.{$_if} is wrong. 
    Should be netif.${_if}
     
    Changed it in my lxc init.d script, and my container start right up.
     
    Don't know what to do with the info.
    Just sharing.
     
  2. Trolling
    Chris Kurlinski reacted to Tassie_Tux in kernel update instructions   
    I also install my kernel manually. The process that I have been using for upgrading is very similar to your initial install...
     
    # merge different or updated kernel package (e.g. gentoo-sources)
    emerge gentoo-sources
     
    #change /usr/src/linux link to the new kernel package directory
    eselect kernel list
    # find the number x corresponding to the new version
    eselect kernel set x
     
    #transfer old kernel config (e.g. 4.0.0. is the old kernel version)
    cp -av /usr/src/gentoo-sources-4.0.0/.config /usr/src/linux/.config
     
    #enter kernel directory
    cd /usr/src/linux
     
    #kernel config
    make oldconfig
     
    #optional - review/change kernel options
    make menuconfig
     
    #build and install - assumes that /boot is mounted if separate to /
    #include -j8 so to use 8 threads (same as MAKEOPTS in make.conf)
    make -j8 bzImage
    make -j8 modules
    make install && make modules_install
     
    #update external initramfs (if applicable)
     
    #update bootloader (assumes sys-boot/grub and correct /etc/boot.conf)
    boot-update
     
    #re-merge kernel module packages against new kernel (e.g. x11-drivers/nvidia-drivers)
    emerge --ask --verbose @module-rebuild
     
    After a successful reboot and verification of new kernel, consider removing old kernel files.
     
    #old kernel source directory
    cd /usr/src
    rm -r gentoo-sources-4.0.0
    #kernel files installed to /boot
    cd /boot
    rm vmlinuz-4.0.0
    rm config-4.0.0
    rm System.map-4.0.0
    #old kernel modules
    cd /lib/modules
    rm -r 4.0.0
  3. Trolling
    Chris Kurlinski got a reaction from fabiobeneditto in rEFInd for uefi/gpt boot   
    oops.
    Sorry about the colouring, I general use Xcode to write my scripts, that was a direct cut/paste from Xcode.....
     
    # Monolithic Kernel
    efibootmgr -c -d /dev/sda -p 1 -L "funtoo" -l "\linux.efi" -u "root=PARTUUID=***** rootfstype=ext4 consoleblank=0"
      # Initramfs Kernel efibootmgr -c -d /dev/sda -p 1 -L "funtoo" -l "\linux.efi" -u "initrd=initramfs-whatever root=UUID=***** rootfstype=ext4 consoleblank=0"   Also as a general note, the default sys-kernel/gentoo-sources config doesn't have the efi stub enabled. If this is not set the efibootmgr won't boot the entry. 
  4. Trolling
    Chris Kurlinski got a reaction from fabiobeneditto in rEFInd for uefi/gpt boot   
    Update about using efibootmgr.
    I just figured out, and I'm not sure why, but if your using a initramfs, you need to pass root=UUID, not root=PARTUUID.
    I was running a monolithic kernel, and UUID would not work.
     
    And the correct efibootmgr command when using a initramfs
    -u "initrd=initramfs-whatever root=UUID=<place string here> rootfstype=<whatever>"
     
    and the initramfs needs to be in the EF00 partition.
  5. Trolling
    Chris Kurlinski got a reaction from fabiobeneditto in rEFInd for uefi/gpt boot   
    I like efibootmgr. Simple.
    No loaders, just efi stubs.
    If you use a generic name for your kernel stub, whenever you update the kernel, cp it to the same name. No need to update the efiboot command
    If you use a initramfs, add it to the -u line, and copy it to the EF00 partition, use a generic name also.
     
    Something like and done.
     
    efibootmgr -c -d /dev/sda -p 1 -L "funtoo" -l "\linux.efi" -u "root=PARTUUID=***** rootfstype=ext4 consoleblank=0"
      -c = create
    -d = dev with the EF00 partition on it
    -p = partition number for your GPT EF00 partition
    -L = entry name
    -l = efistub !!! the "\" is needed because the EF00 partition is fat formatted and UEFI looks for the fs0 / EF00 partition.
    -u = kernel boot options.  Use PARTUUID, I never got UUID to work.
×
×
  • Create New...