Error creating Live CD : SELinux relabel failed
by Danishka Navin
Hi,
I got following error while building F21 based ISO on a Fedora 21 x86_64
system.
I tried after changing SELinux (in host system) to Permissive but no luck.
Appreciate if someone can help me to solve this issue.
warning: Schema 'org.gnome.system.proxy.socks' has path
'/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or
'/system/' are deprecated.
No such key 'computer-icon-visible' in schema 'org.gnome.nautilus.desktop'
as specified in override file
'/usr/share/glib-2.0/schemas/org.gnome.nautilus.desktop.hanthana.gschema.override';
ignoring override for this key.
No such key 'computer-icon-visible' in schema 'org.gnome.nautilus.desktop'
as specified in override file
'/usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override'; ignoring
override for this key.
chown: invalid user: 'liveuser:liveuser'
/tmp/ks-script-Ahjf52: line 96: restorecon: command not found
/tmp/ks-script-Ahjf52: line 98: EOF: command not found
ignoring %post failure (code 127)
18.5%/etc/selinux/targeted/contexts/files/file_contexts: has invalid
context system_u:object_r:iptables_var_lib_t:s0
.
Unmounting directory /data/tmp/imgcreate-AgPJXv/install_root
Losetup remove /dev/loop1
Thanks,
--
Danishka Navin
http://danishkanavin.blogspot.com
http://twitter.com/danishkanavin
http://www.flickr.com/photos/danishkanavin/
9 years
[spin-kickstarts] cloud-atomic: Disable network.service
by Colin Walters
commit 512d03deb07eab346e572a0439196ce7567ce074
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 21:03:34 2015 -0400
cloud-atomic: Disable network.service
https://lists.fedoraproject.org/pipermail/cloud/2015-March/005131.html
fedora-cloud-atomic.ks | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks
index 507f65d..6b0882d 100644
--- a/fedora-cloud-atomic.ks
+++ b/fedora-cloud-atomic.ks
@@ -21,7 +21,8 @@ firewall --disabled
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8"
network --bootproto=dhcp --device=link --activate --onboot=on
-services --enabled=network,sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final
+services --disabled=network
+services --enabled=sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final
zerombr
clearpart --all
9 years
[spin-kickstarts] cloud-atomic: Add a more explanatory comment header
by Colin Walters
commit 85f7fb57371e9b3d6abaf81928cb99258e16d38d
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 21:03:23 2015 -0400
cloud-atomic: Add a more explanatory comment header
fedora-cloud-atomic.ks | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks
index 46e192c..507f65d 100644
--- a/fedora-cloud-atomic.ks
+++ b/fedora-cloud-atomic.ks
@@ -1,8 +1,10 @@
-# Fedora Atomic is a cloud-focused spin implementing the Project Atomic
-# patterns.
-#
-# RIGHT NOW, this is very like the traditional cloud image -- this is
-# just a starting point.
+# Fedora Atomic is a cloud-focused spin implementing the Project
+# Atomic patterns. Note that this replicates the same tree which can
+# now be installed on bare metal.
+
+# This image allocates most space to an LVM-managed thin pool
+# dedicated for Docker containers, and uses docker-storage-setup to
+# dynamically resize storage on boot.
text
lang en_US.UTF-8
9 years
[spin-kickstarts/f22] cloud-atomic: Disable network.service
by Colin Walters
commit 5e9e250c1d5dc359f00ab42e2ed6752e02f3e2fb
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 21:03:34 2015 -0400
cloud-atomic: Disable network.service
https://lists.fedoraproject.org/pipermail/cloud/2015-March/005131.html
fedora-cloud-atomic.ks | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks
index 3e2d7eb..984801d 100644
--- a/fedora-cloud-atomic.ks
+++ b/fedora-cloud-atomic.ks
@@ -21,7 +21,8 @@ firewall --disabled
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8"
network --bootproto=dhcp --device=link --activate --onboot=on
-services --enabled=network,sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final
+services --disabled=network
+services --enabled=sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final
zerombr
clearpart --all
9 years
[spin-kickstarts/f22] cloud-atomic: Add a more explanatory comment header
by Colin Walters
commit ba3bedacb30c337501cd9f44224422c1425adced
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 21:03:23 2015 -0400
cloud-atomic: Add a more explanatory comment header
fedora-cloud-atomic.ks | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks
index cc83d8c..3e2d7eb 100644
--- a/fedora-cloud-atomic.ks
+++ b/fedora-cloud-atomic.ks
@@ -1,8 +1,10 @@
-# Fedora Atomic is a cloud-focused spin implementing the Project Atomic
-# patterns.
-#
-# RIGHT NOW, this is very like the traditional cloud image -- this is
-# just a starting point.
+# Fedora Atomic is a cloud-focused spin implementing the Project
+# Atomic patterns. Note that this replicates the same tree which can
+# now be installed on bare metal.
+
+# This image allocates most space to an LVM-managed thin pool
+# dedicated for Docker containers, and uses docker-storage-setup to
+# dynamically resize storage on boot.
text
lang en_US.UTF-8
9 years
[spin-kickstarts/f22] docker-base: Add some instructions for local builds
by Colin Walters
commit fb6bcce1bed59c62430b83fbd58bff09f309c218
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 17:41:48 2015 -0400
docker-base: Add some instructions for local builds
fedora-docker-base.ks | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/fedora-docker-base.ks b/fedora-docker-base.ks
index c039c93..3b9ae6d 100644
--- a/fedora-docker-base.ks
+++ b/fedora-docker-base.ks
@@ -2,6 +2,18 @@
#
# To keep this image minimal it only installs English language. You need to change
# yum configuration in order to enable other languages.
+#
+### Hacking on this image ###
+# This kickstart is processed using Anaconda-in-ImageFactory (via Koji typically),
+# but you can run imagefactory locally too.
+#
+# To do so, testing local changes, first you'll need a TDL file. I store one here:
+# https://git.fedorahosted.org/cgit/fedora-atomic.git/tree/fedora-atomic-ra...
+#
+# Then, once you have imagefactory and imagefactory-plugins installed, run:
+#
+# imagefactory --debug target_image --template /path/to/fedora-atomic-rawhide.tdl --parameter offline_icicle true --file-parameter install_script $(pwd)/fedora-docker-base.ks docker
+#
cmdline
bootloader --location=none
9 years
[spin-kickstarts/f22] atomic-installer: Update scripts
by Colin Walters
commit d7d0e5ad959d1b0d646c8655b594020b43c67045
Author: Colin Walters <walters(a)verbum.org>
Date: Thu Mar 19 16:50:41 2015 -0400
atomic-installer: Update scripts
These are now based on
https://github.com/rhinstaller/lorax/pull/8
atomic-installer/lorax-configure-repo.tmpl | 8 ++++++++
atomic-installer/lorax-embed-repo.tmpl | 21 +++++++++------------
2 files changed, 17 insertions(+), 12 deletions(-)
---
diff --git a/atomic-installer/lorax-configure-repo.tmpl b/atomic-installer/lorax-configure-repo.tmpl
new file mode 100644
index 0000000..7c79612
--- /dev/null
+++ b/atomic-installer/lorax-configure-repo.tmpl
@@ -0,0 +1,8 @@
+## Lorax template to configure Anaconda to use the local OSTree
+## repository on disk.
+
+<%page args="ostree_osname, ostree_ref"/>
+append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=${ostree_osname} --remote=${ostree_osname} --url=file:////run/install/repo/content/repo --ref=${ostree_ref}\n"
+append usr/share/anaconda/interactive-defaults.ks "services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local\n"
+append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail\nrm -f /etc/ostree/remotes.d/${ostree_osname}.conf\n%end\n"
+
diff --git a/atomic-installer/lorax-embed-repo.tmpl b/atomic-installer/lorax-embed-repo.tmpl
index fe5a810..3ab0c33 100644
--- a/atomic-installer/lorax-embed-repo.tmpl
+++ b/atomic-installer/lorax-embed-repo.tmpl
@@ -1,14 +1,11 @@
## Lorax template to embed an OSTree repository into the installer.iso
## and configure an interactive installer use to look for it.
-
-<%page args='root'/>
-mkdir install/ostree
-runcmd ostree --repo=${root}/install/ostree init --mode=archive-z2
-runcmd ostree remote add ostree-mirror --repo=${root}/install/ostree/ --set=gpg-verify=false @OSTREE_URL@
-runcmd ostree --repo=${root}/install/ostree/ pull --mirror ostree-mirror @OSTREE_REF@
-
-
-append usr/share/anaconda/interactive-defaults.ks "ostreesetup --nogpg --osname=@OSTREE_OSNAME@ --remote=@OSTREE_OSNAME@ --url=file:///install/ostree --ref=@OSTREE_REF@\n"
-append usr/share/anaconda/interactive-defaults.ks "services --disabled cloud-init,cloud-config,cloud-final,cloud-init-local\n"
-append usr/share/anaconda/interactive-defaults.ks "%post --erroronfail\nrm -f /etc/ostree/remotes.d/@OSTREE_OSNAME@.conf\n%end\n"
-
+##
+## Note that we pull with depth=0 to only get *one* commit into the
+## ISO, because we obviously don't want the full history.
+
+<%page args="workdir, ostree_osname, ostree_repo, ostree_ref"/>
+runcmd mkdir -p ${workdir}/iso-graft/content/repo
+runcmd ostree --repo=${workdir}/iso-graft/content/repo init --mode=archive-z2
+runcmd ostree --repo=${workdir}/iso-graft/content/repo remote add ostree-mirror --set=gpg-verify=false ${ostree_repo}
+runcmd ostree --repo=${workdir}/iso-graft/content/repo pull --mirror ostree-mirror ${ostree_ref}
9 years