How do I make some changes inside the chroot environment


#1

It’s me again.

I am trying at build-time to tweak an vyos object by customizing the live-cd (keyboard, vyos password, static network and so on).
I am guessing how can I jump into the chroot environment do some changes and let the make process finish by squashing everything down to a iso.

Thx for every suggestion on this topic


#2

Examples:

Change keyboard mappings from english to german
PREREQ: git clone build-iso into your vyos squeeze box

  • goto build-iso/livecd/config.vyatta/chroot_local-includes
  • create the etc directory
  • copy an empty rc.local
  • insert after # By default this script does nothing.
  • sudo loadkeys /usr/share/keymaps/i386/qwertz/de.kmap.gz
  • build iso again
  • test it

Change default password from vyos to your own
PREREQ: boot vyos iso into live

  • login to your vyos live environment
  • configure
  • set system login user vyos authentication plaintext-password
  • commit
  • save
  • exit
  • vi /config/config.boot
  • search for the encrypted-password
  • copy it into the clipboard

Change into your vyos squeeze box (not live!)

  • goto /build-iso/livecd/templates/community/
  • vi config.boot.default and paste encrypted password from clipboard
  • build iso again
  • test it

Change default NTP server to point to your own NTP server
PREREQ: git clone build-iso into your vyos squeeze box

  • goto /build-iso/livecd/templates/community/
  • vi config.boot.default
  • change system ntp server to whatever you like
  • build iso again
  • test it

Eliminate the annoying kernel message “… end_request: I/O error, dev fd0, sector 0”
PREREQ: git clone build-iso into your vyos squeeze box
PREREQ: Do this only if kernel was compiled with floppy support!

  • goto build-iso/livecd/config.vyatta/chroot_local-includes/
  • mkdir -p etc/modprobe.d
  • create a file named blacklist-custom.conf
  • vi blacklist-custom.conf
  • insert blacklist floppy
  • build iso again
  • test it

#3

Opened bug report

http://bugzilla.vyos.net/show_bug.cgi?id=173


#4

Thx for your ongoing support @fromport!

I want to inform you that also md is not sensing properly,
it tries to find md devices and pollute the log with unwanted messages.
I’ll open later on a request for bugzilla inclusion if time permits :slight_smile: