[buildiso/conf] Introduce branding #70

Closed
opened 2015-03-02 18:53:36 +00:00 by philm · 18 comments
philm commented 2015-03-02 18:53:36 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

We need branding.

*Created by: udeved* We need branding.
philm commented 2015-03-03 21:45:20 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

I just talked to Kyle from Sonar Linux and he told me that changing username, password and hostname in our config file doesn't do anything. We have to actually check it once more. Also we have to check how to create efiboot loader entries on the fly as they are now hardcoded to Manjaro in our shared/profiles folder.

*Created by: philmmanjaro* I just talked to Kyle from Sonar Linux and he told me that changing username, password and hostname in our config file doesn't do anything. We have to actually check it once more. Also we have to check how to create efiboot loader entries on the fly as they are now hardcoded to Manjaro in our shared/profiles folder.
philm commented 2015-03-03 22:21:27 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I can't see anything wrong with user, password and host, we also call the configure stuff.
Is this with the latest changes and profile.conf?

As for efi, please elaborate, I didn't really get it.

*Created by: udeved* I can't see anything wrong with user, password and host, we also call the configure stuff. Is this with the latest changes and profile.conf? As for efi, please elaborate, I didn't really get it.
philm commented 2015-03-03 22:24:31 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I see, you want the efiboot directory and content on the fly?

I already started with that btw, I will push a bigger changeset, its mainly variable renaming.
So check your profile.conf and manjaro-tools.conf.
Profiles and cli are also updated with new var names.

*Created by: udeved* I see, you want the efiboot directory and content on the fly? I already started with that btw, I will push a bigger changeset, its mainly variable renaming. So check your profile.conf and manjaro-tools.conf. Profiles and cli are also updated with new var names.
philm commented 2015-03-03 22:55:05 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Var renaming:

manjaro_kernel --> dist_kernel
manjaro_kernel_ver --> dist_kernel_ver
manjaroiso --> dist_iso
manjaro_version --> dist_version

*Created by: udeved* Var renaming: manjaro_kernel --> dist_kernel manjaro_kernel_ver --> dist_kernel_ver manjaroiso --> dist_iso manjaro_version --> dist_version
philm commented 2015-03-04 09:39:45 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Ok, one TODO left.
We need a better approach for generating the mkinitcpio image.
Currently we determine kernel modules version to use -k switch, but I think its better to create a preset with the $dist_kernel we already know with profile.conf.

*Created by: udeved* Ok, one TODO left. We need a better approach for generating the mkinitcpio image. Currently we determine kernel modules version to use -k switch, but I think its better to create a preset with the $dist_kernel we already know with profile.conf.
philm commented 2015-03-04 15:39:48 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Changes overview:

efi entries are now created on the fly and would in theory support 32bit efi.

isolinux.cfg is also created on the fly, but a isolinux-overlay cfg will overwrite the generated one.

==> Prepare [manjaro/boot/EFI]
  -> copying efi loaders ...
  -> writing loader.conf ...
  -> writing uefi-shell-v1-x86_64.conf ...
  -> writing uefi-shell-v2-x86_64.conf ...
  -> writing manjaroiso-x86_64.conf ...
  -> writing manjaroiso-x86_64-nonfree.conf ...
  -> copying shellx64_v1.efi ...
  -> copying shellx64_v2.efi ...
==> Done [manjaro/boot/EFI]
==> Prepare [manjaro/iso/EFI]
mkfs.fat 3.0.27 (2014-11-12)
  -> copying boot images ...
  -> copying efi loaders ...
  -> writing loader.conf ...
  -> writing uefi-shell-v1-x86_64.conf ...
  -> writing uefi-shell-v2-x86_64.conf ...
  -> writing manjaroiso-x86_64.conf ...
  -> writing manjaroiso-x86_64-nonfree.conf ...
  -> copying shellx64_v1.efi ...
  -> copying shellx64_v2.efi ...
==> Done [manjaro/iso/EFI]
==> Prepare [manjaro/iso/isolinux]
  -> writing isolinux.cfg ...
  -> isolinux overlay found. Overwriting files ...
  -> updating isolinux.cfg ...
  -> copying isolinux bios binaries ...
==> Done [manjaro/iso/isolinux]
*Created by: udeved* Changes overview: efi entries are now created on the fly and would in theory support 32bit efi. isolinux.cfg is also created on the fly, but a isolinux-overlay cfg will overwrite the generated one. ``` ==> Prepare [manjaro/boot/EFI] -> copying efi loaders ... -> writing loader.conf ... -> writing uefi-shell-v1-x86_64.conf ... -> writing uefi-shell-v2-x86_64.conf ... -> writing manjaroiso-x86_64.conf ... -> writing manjaroiso-x86_64-nonfree.conf ... -> copying shellx64_v1.efi ... -> copying shellx64_v2.efi ... ==> Done [manjaro/boot/EFI] ==> Prepare [manjaro/iso/EFI] mkfs.fat 3.0.27 (2014-11-12) -> copying boot images ... -> copying efi loaders ... -> writing loader.conf ... -> writing uefi-shell-v1-x86_64.conf ... -> writing uefi-shell-v2-x86_64.conf ... -> writing manjaroiso-x86_64.conf ... -> writing manjaroiso-x86_64-nonfree.conf ... -> copying shellx64_v1.efi ... -> copying shellx64_v2.efi ... ==> Done [manjaro/iso/EFI] ==> Prepare [manjaro/iso/isolinux] -> writing isolinux.cfg ... -> isolinux overlay found. Overwriting files ... -> updating isolinux.cfg ... -> copying isolinux bios binaries ... ==> Done [manjaro/iso/isolinux] ```
philm commented 2015-03-04 17:59:59 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Regarding the hostname, password, username. Sonar linux guys claim that with changing that their iso won't boot up. Did you ever tried to change username, host and password from default?

*Created by: philmmanjaro* Regarding the hostname, password, username. Sonar linux guys claim that with changing that their iso won't boot up. Did you ever tried to change username, host and password from default?
philm commented 2015-03-04 18:01:03 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I tried some time ago and it used to work.
Will check again.

*Created by: udeved* I tried some time ago and it used to work. Will check again.
philm commented 2015-03-04 18:02:54 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Ok, maybe then there was something else. They are both blind, so something might got mis-interpreted by them. We will figure it out when branding is done and tested by us.

*Created by: philmmanjaro* Ok, maybe then there was something else. They are both blind, so something might got mis-interpreted by them. We will figure it out when branding is done and tested by us.
philm commented 2015-03-04 18:38:21 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Phil, could you test a custom hostname for a systemd iso please?

Its the only thing I can think of why a boot process would hang on systemd, meybe.

==> BUILD QUEUE:
 --> Profile: [lxqt-openrc]
  -> Packages-Custom: Packages-Lxqt
  -> work_dir: /build/buildiso/lxqt-openrc/x86_64
  -> iso_file: manjaro-lxqt-0.9.0-x86_64.iso
  -> pacman_conf: /usr/share/manjaro-tools/pacman-multilib.conf
  -> initsys: openrc
  -> displaymanager: lightdm
  -> dist_kernel: linux319
  -> efi_boot_loader: grub
  -> hostname: manjaro-live
  -> username: live
  -> password: test
  -> addgroups: video,audio,power,disk,storage,optical,network,lp,scanner,wheel
  -> start_openrc: acpid bluetooth consolekit cronie cupsd dbus syslog-ng NetworkManager
  -> start_openrc_live: livecd mhwd-live pacman-init pacman-boot

livetest

PS: the dynamic boot file writing seems to work.
Will test next custom values for the branding stuff

*Created by: udeved* Phil, could you test a custom hostname for a systemd iso please? Its the only thing I can think of why a boot process would hang on systemd, meybe. ``` ==> BUILD QUEUE: --> Profile: [lxqt-openrc] -> Packages-Custom: Packages-Lxqt -> work_dir: /build/buildiso/lxqt-openrc/x86_64 -> iso_file: manjaro-lxqt-0.9.0-x86_64.iso -> pacman_conf: /usr/share/manjaro-tools/pacman-multilib.conf -> initsys: openrc -> displaymanager: lightdm -> dist_kernel: linux319 -> efi_boot_loader: grub -> hostname: manjaro-live -> username: live -> password: test -> addgroups: video,audio,power,disk,storage,optical,network,lp,scanner,wheel -> start_openrc: acpid bluetooth consolekit cronie cupsd dbus syslog-ng NetworkManager -> start_openrc_live: livecd mhwd-live pacman-init pacman-boot ``` <a href='http://postimage.org/' target='_blank'><img src='http://s17.postimg.org/wlyg4qjwv/livetest.png' border='0' alt="livetest" /></a><br /> PS: the dynamic boot file writing seems to work. Will test next custom values for the branding stuff
philm commented 2015-03-04 18:51:49 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Ok, will do when I find time. So, I assume you have this now on the devel branch and latest code tested. Will do the same later on.

*Created by: philmmanjaro* Ok, will do when I find time. So, I assume you have this now on the devel branch and latest code tested. Will do the same later on.
philm commented 2015-03-04 18:54:50 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Yes, latest code.
I will also test the new mkinitcpio preset image generation.
Its ugly to check for kernel version in /usr/lib/modules .... as it is now.

*Created by: udeved* Yes, latest code. I will also test the new mkinitcpio preset image generation. Its ugly to check for kernel version in /usr/lib/modules .... as it is now.
philm commented 2015-03-04 18:56:13 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

On which part do we do that?

*Created by: philmmanjaro* On which part do we do that?
philm commented 2015-03-04 19:04:28 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I just committed a better solution.
It was left over code from manjaroiso.

*Created by: udeved* I just committed a better solution. It was left over code from manjaroiso.
philm commented 2015-03-04 19:31:41 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

==> ISO SETTINGS:
  -> iso_label: TESTFOO090
  -> iso_version: 0.9.0
  -> code_name: Bellatrix
  -> dist_version: 2015.03
  -> dist_iso: fooiso
  -> img_name: foo
  -> install_dir: foobar
  -> compression: xz
  -> checksum_mode: md5

Appears to be working ;)

*Created by: udeved* ``` ==> ISO SETTINGS: -> iso_label: TESTFOO090 -> iso_version: 0.9.0 -> code_name: Bellatrix -> dist_version: 2015.03 -> dist_iso: fooiso -> img_name: foo -> install_dir: foobar -> compression: xz -> checksum_mode: md5 ``` Appears to be working ;)
philm commented 2015-03-04 20:35:48 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Ok, last thing is also done, the isolinux message file.

Now, I do think we got the branding stuff too much cluttered.

We got in:

  • manjaro-tools.conf
# unset defaults to given value
# iso_version=0.9.0

# unset defaults to given value
# branding="MJRO"

# unset defaults to given value, specify a date here of have it automatically set
# dist_version="$(date +%Y.%m)"

# unset defaults to given value
# install_dir=manjaro

# unset defaults to given value
# dist_iso="manjaroiso"

# unset defaults to value sourced from /etc/lsb-release
# code_name="Bellatrix"

# unset defaults to given value
# img_name=manjaro
  • profile.conf
# unset defaults to given value
# dist_kernel="linux319"

# unset defaults to given value
# plymouth_theme=manjaro-elegant

Could we reduce some variables, such as install_dir equals img_name?

*Created by: udeved* Ok, last thing is also done, the isolinux message file. Now, I do think we got the branding stuff too much cluttered. We got in: - manjaro-tools.conf ``` # unset defaults to given value # iso_version=0.9.0 # unset defaults to given value # branding="MJRO" # unset defaults to given value, specify a date here of have it automatically set # dist_version="$(date +%Y.%m)" # unset defaults to given value # install_dir=manjaro # unset defaults to given value # dist_iso="manjaroiso" # unset defaults to value sourced from /etc/lsb-release # code_name="Bellatrix" # unset defaults to given value # img_name=manjaro ``` - profile.conf ``` # unset defaults to given value # dist_kernel="linux319" # unset defaults to given value # plymouth_theme=manjaro-elegant ``` Could we reduce some variables, such as install_dir equals img_name?
philm commented 2015-03-05 17:39:52 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

yes, simplify it as much as you can.

*Created by: philmmanjaro* yes, simplify it as much as you can.
philm commented 2015-03-05 18:42:16 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I close this, last commits did it and objective is met now.

*Created by: udeved* I close this, last commits did it and objective is met now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#70
No description provided.