Re: Howto create installation image.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Artem,

Did you use your own tmpl file? (e.g.: tweaked the packages that should be installed...)
It seems requires dnf in the repo when you build the iso on fedora. However it do seems that I can't find dnf in centos' repo.

```
[root@87d2d5f6b21b ~]# lorax -p CentOS -v 7 -r 7 -s http://mirror.centos.org/altarch/7/os/aarch64/ -s http://mirror.centos.org/altarch/7/updates/aarch64/  myiso
2017-07-20 03:23:19,207: Added 'lorax-repo-0': http://mirror.centos.org/altarch/7/os/aarch64/
2017-07-20 03:23:19,207: Fetching metadata...
2017-07-20 03:23:19,882: Added 'lorax-repo-1': http://mirror.centos.org/altarch/7/updates/aarch64/
2017-07-20 03:23:19,882: Fetching metadata...
2017-07-20 03:23:24,655: checking for root privileges
checking for root privileges
2017-07-20 03:23:24,655: checking the selinux mode
checking the selinux mode
2017-07-20 03:23:24,656: checking dnf base object
checking dnf base object
2017-07-20 03:23:24,659: setting up build architecture
setting up build architecture
2017-07-20 03:23:24,660: setting up build parameters
setting up build parameters
2017-07-20 03:23:24,662: Using templatedir /usr/share/lorax/templates.d/99-generic
Using templatedir /usr/share/lorax/templates.d/99-generic
2017-07-20 03:23:24,662: installing runtime packages
installing runtime packages
2017-07-20 03:23:25,045: got release: centos-release
got release: centos-release
2017-07-20 03:23:25,089: running runtime-install.tmpl
running runtime-install.tmpl
2017-07-20 03:23:25,104: installpkg dnf failed: no package matched
installpkg dnf failed: no package matched
2017-07-20 03:23:25,105: template command error in runtime-install.tmpl:
template command error in runtime-install.tmpl:
2017-07-20 03:23:25,105:   installpkg dnf
  installpkg dnf
2017-07-20 03:23:25,106:   Exception: Required installpkg failed.
  Exception: Required installpkg failed.
Traceback (most recent call last):
  File "/usr/sbin/lorax", line 273, in <module>
    main()
  File "/usr/sbin/lorax", line 133, in main
    remove_temp=True, verify=opts.verify)
  File "/usr/lib/python3.5/site-packages/pylorax/__init__.py", line 277, in run
    rb.install()
  File "/usr/lib/python3.5/site-packages/pylorax/treebuilder.py", line 119, in install
    self._runner.run("runtime-install.tmpl")
  File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 220, in run
    self._run(commands)
  File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 239, in _run
    f(*args)
  File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 580, in installpkg
    raise Exception("Required installpkg failed.")
Exception: Required installpkg failed.
```
 
Thanks a lot!

BR,
Madper
 
------------------ Original ------------------
Date:  Thu, Jul 20, 2017 00:32 AM
To:  "Discussion list about Kickstart"<kickstart-list@xxxxxxxxxx>;
Subject:  Re: Howto create installation image.
 
On Wed, 2017-07-19 at 22:47 +0800, Madper wrote:
> Hey guys,
>
> I'm trying to port centos7 to our arm64 server. My goal is creating
> an installation image which execs anaconda directly after boot. 
> Currently, I'm using `livemedia-creator --make-iso --no-virt --ks
> centos.ks`[1] on an arm64 centos docker. The livemedia-creator is
> cloned from lorax git tree.(rhel7-branch)

Hi,

I successfully used lorax.

I used it in Fedora, but you can build CentOS images in Fedora if you
point loarax to Centos repos.

I used something like this:

lorax -p CentOS -v 7 -r 7 -s URL1 -s URL2 results

where
* URL1 - the base CentOS7 repo
* URL2 - the updates repo

HTH,
Artem.

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux