Error when include custom-mande kickstart files
by Wolnei
Good night,
I tried to generated my Fedora Remix of the version 19 of Fedora with
latest version of livecd-tools and i got the same error all the time:
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 237, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 227, in main
logging.error(u"Error creating Live CD : %s" % e)
File "/usr/lib/python2.7/site-packages/imgcreate/errors.py", line 45, in
__unicode__
return unicode(self.message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 62:
ordinal not in range(128)
My main kickstart
*# kuai.ks*
# - Kuai Livecd Spin with the K Desktop Environment (KDE) - version 19
lang pt_BR.UTF-8
keyboard br-abnt2
timezone America/Sao_Paulo
selinux --disabled
services --enabled=NetworkManager
--disabled=abrtd,abrt-ccpp,abrt-oops,lvm2-monitor,mdmonitor,network,rsync,sshd,sendmail,tcsd
%include ../ks/fedora/fedora-livecd-kde.ks
%include ../ks/mod/base.ks
%packages --instLangs pt_BR
#Kernel PAE > 4GB ram
-kernel
kernel-PAE
#language
kde-l10n
kde-l10n-Brazil
%end
*# base.ks
*
%packages
#entrada -> ç
gtk2-immodules
im-chooser
#fontes
aajohan-comfortaa-fonts
#Samba
fuse-smb
libsmbclient
#Utils
joe
ntp
rdesktop
yum-plugin-fastestmirror
%end
--
Wolnei Junior
Brazil Fedora Ambassador
Linux User #477062
10 years, 4 months
livecd-iso-to-disk.sh and extension size
by D. Hugh Redelmeier
I've often had problems with putting Linux on USB sticks. Fedora,
Ubuntu, and CentOS have been hit or miss. I decided to be a little more
adventurous with Fedora 19.
I decided to use livecd-iso-to-disk.sh so that I could know better what
was going on.
(Is it time to change the name? Fedora Live no longer fits on a CD
these days. It's great on DVDs and USB sticks.)
I wanted a LARGE overlay (I wanted to experiment with installing
updates). When I tried
sudo ./livecd-iso-to-disk.sh --format --overlay-size-mb 4095 --home-size-mb 200 --unencrypted-home Fedora-Live-Desktop-x86_64-19-1.iso /dev/sdi
it tried to create an MSDOS filesystem and consequently complained
that it was too big:
mkfs.fat 3.0.20 (12 Jun 2013)
Can't have an overlay of 2048MB or greater on VFAT
Why didn't it use ext[34]? Reading the script, I found the answer: I
hadn't installed the systlinux-extlinux package on my host system.
There was no message to this effect.
I suggest something like this (untested!) patch be applied:
==== start
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index c4fb4db..0e65d3e 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -868,7 +868,10 @@ if [ -n "$format" -a -z "$skipcopy" ]; then
if [ -n "$efi" ]; then
createGPTLayout $TGTDEV
- elif [ -n "$usemsdos" -o ! -x /sbin/extlinux ]; then
+ elif [ -n "$usemsdos" ]; then
+ createMSDOSLayout $TGTDEV
+ elif [ ! -x /sbin/extlinux ]; then
+ echo "Warning: syslinux-extlinux package not installed; formatting as VFAT filesystem instead of EXT"
createMSDOSLayout $TGTDEV
else
createEXTFSLayout $TGTDEV
==== end
10 years, 4 months
Changes to 'refs/tags/livecd-tools-17.18'
by Brian C. Lane
Tag 'livecd-tools-17.18' created by Brian C. Lane <bcl(a)redhat.com> at 2013-07-15 18:43 +0000
Tag as livecd-tools-17.18
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUeRC2BF+jBaO/jp/AQKgPgf+N67vA+2AIC6L0X/ZXYvQzUYynPQOTqWK
uXQMAiymnh0q6gCvj5+B/LH08I3/aSinp4iNdwkivpavKqDQok6nMZVg8todk4M3
+HkPHYoDSkw5P83qmp0+nIo+6TViofXvkgZ/UdTAg3/WolkRx+rAA7bUhzAkWkoY
W13FeKrifuYwZF3WA4HybtyK69g78BvN+FOVEK7iwcpM9fSeIeF3lAdSOTXNhMnM
K6pX1fMSZFFXf83zhL7FBhak301a/6bh8XWhfIl9f0EgU1kdSgtneeQY0ioM+sNS
Wyts5CtZ3OIjdkOauOPiLMysQSbVV2QOpmZOCydzHp2X32E6dsHrHA==
=kzX2
-----END PGP SIGNATURE-----
Changes since livecd-tools-17.17:
Brian C. Lane (4):
ts.check output is a list of tuples (#979759)
litd: Add --updates option
litd: Add kickstart option
Version 17.18
---
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 10 +++++++++-
imgcreate/yuminst.py | 2 +-
tools/livecd-iso-to-disk.sh | 30 ++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+), 3 deletions(-)
---
10 years, 4 months
Branch 'f17-branch' - 3 commits - docs/livecd-iso-to-disk.pod Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 10 +++++++++-
tools/livecd-iso-to-disk.sh | 30 ++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
New commits:
commit 4dfe458578a56b85e732b2db916328f4e0f9dfb3
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:43:28 2013 -0700
Version 17.18
diff --git a/Makefile b/Makefile
index 3a34806..fd482eb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 17.17
+VERSION = 17.18
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 1b25ee68cc606fe0f2d21a0829561a521a2b8714
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:15:11 2013 -0700
litd: Add kickstart option
Add --ks kickstart option to copy a kickstart to the USB and setup
inst.ks to point to it. This can be used with a netboot or dvd iso to
make a USB stick that will start an install on boot.
Note that with the F19 release the install USB is not filtered out of
the drive list so clearpart --drives=sda needs to be used in the ks.
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 8f9ed61..bf52822 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable Live images onto USB/SD storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] <source> <target device>
+B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] [--ks kickstart] <source> <target device>
Simplest
@@ -139,6 +139,10 @@ Prevents the default option to encrypt a new persistent home directory.
Setup inst.updates to point to an updates image on the device. Anaconda uses this for testing updates to an iso without needing to make a new iso.
+=item --ks kickstart
+
+Setup inst.ks to point to an kickstart file on the device. Use this for automating installs on boot.
+
=back
=head1 CONTRIBUTORS
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index feb48b5..939de2f 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,7 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
- [--updates updates.img]
+ [--updates updates.img] [--ks kickstart]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -249,6 +249,10 @@ usage() {
Setup inst.updates to point to an updates image on the device. Anaconda
uses this for testing updates to an iso without needing to make a new iso.
+ --ks kickstart
+ Setup inst.ks to point to an kickstart file on the device. Use this for
+ automating installs on boot.
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -708,6 +712,7 @@ packages=
LIVEOS=LiveOS
HOMEFILE="home.img"
updates=
+ks=
if [[ "$*" =~ "--help" ]]; then
usage
@@ -800,6 +805,10 @@ while [ $# -gt 2 ]; do
updates=$2
shift
;;
+ --ks)
+ ks=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1203,6 +1212,12 @@ if [ -n "$updates" ]; then
kernelargs+=" inst.updates=hd:$TGTLABEL:/updates.img"
fi
+# Setup the kickstart
+if [ -n "$ks" ]; then
+ copyFile "$ks" "$TGTMNT/ks.cfg"
+ kernelargs+=" inst.ks=hd:$TGTLABEL:/ks.cfg"
+fi
+
echo "Updating boot config file"
# adjust label and fstype
sed -i -e "s/CDLABEL=[^ ]*/$TGTLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$TGTFS/" -e "s/LABEL=[^ ]*/$TGTLABEL/" $BOOTCONFIG $BOOTCONFIG_EFI
commit ed2a6b6e2444e1fcac12ad2d4747a7a39afe03fd
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri Jun 7 12:14:15 2013 -0700
litd: Add --updates option
Pass --updates updates.img to livecd-iso-to-disk to setup an Anaconda
updates image on the device. It copies the file over to /updates.img and
adds inst.updates= to the kernel cmdline
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 7ef0c14..8f9ed61 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable Live images onto USB/SD storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] <source> <target device>
+B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] <source> <target device>
Simplest
@@ -135,6 +135,10 @@ Specifies the default option to encrypt a new persistent home directory if --hom
Prevents the default option to encrypt a new persistent home directory.
+=item --updates updates.img
+
+Setup inst.updates to point to an updates image on the device. Anaconda uses this for testing updates to an iso without needing to make a new iso.
+
=back
=head1 CONTRIBUTORS
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 0b4d2c8..feb48b5 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,6 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
+ [--updates updates.img]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -244,6 +245,10 @@ usage() {
--unencrypted-home
Prevents the default option to encrypt a new persistent home directory.
+ --updates updates.img
+ Setup inst.updates to point to an updates image on the device. Anaconda
+ uses this for testing updates to an iso without needing to make a new iso.
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -702,6 +707,7 @@ imgtype=
packages=
LIVEOS=LiveOS
HOMEFILE="home.img"
+updates=
if [[ "$*" =~ "--help" ]]; then
usage
@@ -790,6 +796,10 @@ while [ $# -gt 2 ]; do
--delete-home)
keephome=""
;;
+ --updates)
+ updates=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1187,6 +1197,11 @@ if [ "$srctype" = "live" ]; then
fi
fi
+# Setup the updates.img
+if [ -n "$updates" ]; then
+ copyFile "$updates" "$TGTMNT/updates.img"
+ kernelargs+=" inst.updates=hd:$TGTLABEL:/updates.img"
+fi
echo "Updating boot config file"
# adjust label and fstype
10 years, 4 months
Changes to 'refs/tags/livecd-tools-18.17'
by Brian C. Lane
Tag 'livecd-tools-18.17' created by Brian C. Lane <bcl(a)redhat.com> at 2013-07-15 18:41 +0000
Tag as livecd-tools-18.17
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUeRCWBF+jBaO/jp/AQK7kQf8CYqLJH2fWeND6Ks5kPk7kMskbEZ+qiG/
ER5bnx7B5P6rkWiZP6kQC9+DfXwLLNpfYyKMGG0qP+bMeVgKCM4KT7/5Su4+fADy
5MoX6B919Ul8S4BXkG0VvJx8sYeIKPYPzcSP7lxfe1zka66W2Kh6QLxWhUtEHbNK
6EMVrM7bbBwmPJEh5ikZZAJ3sgig2Q4FWMmcbyLmE4mYojSQmNn4oSUeRR5zNIln
YvRS19Ep7+t6cLgq8KahlehWkk/dAcnTPftmU7l3P8c36tnLZ8IiTkCep00wjyWa
suw6Pd3afwb8Z07srkR1Os+4QgDly4gRDJ1gwuMjOigJLH8hHtdlGw==
=fHHT
-----END PGP SIGNATURE-----
Changes since livecd-tools-18.16:
Brian C. Lane (4):
ts.check output is a list of tuples (#979759)
litd: Add --updates option
litd: Add kickstart option
Version 18.17
---
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 10 +++++++++-
imgcreate/yuminst.py | 2 +-
tools/livecd-iso-to-disk.sh | 30 ++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+), 3 deletions(-)
---
10 years, 4 months
Branch 'f18-branch' - 3 commits - docs/livecd-iso-to-disk.pod Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 10 +++++++++-
tools/livecd-iso-to-disk.sh | 30 ++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
New commits:
commit 07b8a52a0888536306dd849a9c00fc2a9a2ed5b2
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:41:12 2013 -0700
Version 18.17
diff --git a/Makefile b/Makefile
index ccd1bd4..aabfeab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 18.16
+VERSION = 18.17
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 0bc0f31c803b15d175e1fe9745ecb38e85bb435f
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:15:11 2013 -0700
litd: Add kickstart option
Add --ks kickstart option to copy a kickstart to the USB and setup
inst.ks to point to it. This can be used with a netboot or dvd iso to
make a USB stick that will start an install on boot.
Note that with the F19 release the install USB is not filtered out of
the drive list so clearpart --drives=sda needs to be used in the ks.
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 8f9ed61..bf52822 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable Live images onto USB/SD storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] <source> <target device>
+B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] [--ks kickstart] <source> <target device>
Simplest
@@ -139,6 +139,10 @@ Prevents the default option to encrypt a new persistent home directory.
Setup inst.updates to point to an updates image on the device. Anaconda uses this for testing updates to an iso without needing to make a new iso.
+=item --ks kickstart
+
+Setup inst.ks to point to an kickstart file on the device. Use this for automating installs on boot.
+
=back
=head1 CONTRIBUTORS
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 9a8103b..9387b39 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,7 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
- [--updates updates.img]
+ [--updates updates.img] [--ks kickstart]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -249,6 +249,10 @@ usage() {
Setup inst.updates to point to an updates image on the device. Anaconda
uses this for testing updates to an iso without needing to make a new iso.
+ --ks kickstart
+ Setup inst.ks to point to an kickstart file on the device. Use this for
+ automating installs on boot.
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -708,6 +712,7 @@ packages=
LIVEOS=LiveOS
HOMEFILE="home.img"
updates=
+ks=
if [[ "$*" =~ "--help" ]]; then
usage
@@ -800,6 +805,10 @@ while [ $# -gt 2 ]; do
updates=$2
shift
;;
+ --ks)
+ ks=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1203,6 +1212,12 @@ if [ -n "$updates" ]; then
kernelargs+=" inst.updates=hd:$TGTLABEL:/updates.img"
fi
+# Setup the kickstart
+if [ -n "$ks" ]; then
+ copyFile "$ks" "$TGTMNT/ks.cfg"
+ kernelargs+=" inst.ks=hd:$TGTLABEL:/ks.cfg"
+fi
+
echo "Updating boot config file"
# adjust label and fstype
sed -i -e "s/CDLABEL=[^ ]*/$TGTLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$TGTFS/" -e "s/LABEL=[^ ]*/$TGTLABEL/" $BOOTCONFIG $BOOTCONFIG_EFI
commit 9bdfcfe38b400d0ebc4e9db83be6907e5238b83d
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri Jun 7 12:14:15 2013 -0700
litd: Add --updates option
Pass --updates updates.img to livecd-iso-to-disk to setup an Anaconda
updates image on the device. It copies the file over to /updates.img and
adds inst.updates= to the kernel cmdline
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 7ef0c14..8f9ed61 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable Live images onto USB/SD storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] <source> <target device>
+B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] <source> <target device>
Simplest
@@ -135,6 +135,10 @@ Specifies the default option to encrypt a new persistent home directory if --hom
Prevents the default option to encrypt a new persistent home directory.
+=item --updates updates.img
+
+Setup inst.updates to point to an updates image on the device. Anaconda uses this for testing updates to an iso without needing to make a new iso.
+
=back
=head1 CONTRIBUTORS
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index eb7c3cc..9a8103b 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,6 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
+ [--updates updates.img]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -244,6 +245,10 @@ usage() {
--unencrypted-home
Prevents the default option to encrypt a new persistent home directory.
+ --updates updates.img
+ Setup inst.updates to point to an updates image on the device. Anaconda
+ uses this for testing updates to an iso without needing to make a new iso.
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -702,6 +707,7 @@ imgtype=
packages=
LIVEOS=LiveOS
HOMEFILE="home.img"
+updates=
if [[ "$*" =~ "--help" ]]; then
usage
@@ -790,6 +796,10 @@ while [ $# -gt 2 ]; do
--delete-home)
keephome=""
;;
+ --updates)
+ updates=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1187,6 +1197,11 @@ if [ "$srctype" = "live" ]; then
fi
fi
+# Setup the updates.img
+if [ -n "$updates" ]; then
+ copyFile "$updates" "$TGTMNT/updates.img"
+ kernelargs+=" inst.updates=hd:$TGTLABEL:/updates.img"
+fi
echo "Updating boot config file"
# adjust label and fstype
10 years, 4 months
Changes to 'refs/tags/livecd-tools-19.6'
by Brian C. Lane
Tag 'livecd-tools-19.6' created by Brian C. Lane <bcl(a)redhat.com> at 2013-07-15 18:23 +0000
Tag as livecd-tools-19.6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUeQ+EBF+jBaO/jp/AQKcSAf+KRHtUdxNlnfPwhRlvVJjK17P+NgwC6CA
UROF1i/4i9GUZMOvmQ1RtpnuROBY2watvwPq7CixxppK57xhUuw+gO/9N0ykVkCz
yS3S5mYrPY/q4nNUXQoNCIHEtv6I6OMqhbEVeKkLSYoeAnhh2nB98nlE+qVaTF9e
AiYpvJNEnzymYb/XzlmNEKuKCINA8oEBKX7A4NqkmXuX0eNSFDE3eLlWr55qDl18
OmwAzw3Bw5HuRD5Cac1VEFMkn2HklnfBLNE90SPs7VWwKP+TDUiNHent3Zz2Xm0j
s7AZIqKsCs87XHlzsELIBrOK6dmEDTKWQnB/8XHQ6qXHHCEJLJC47A==
=mxuP
-----END PGP SIGNATURE-----
Changes since livecd-tools-19.5:
Brian C. Lane (4):
Add repo --noverifyssl support (#907707)
ts.check output is a list of tuples (#979759)
litd: Add kickstart option
Version 19.6
---
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 6 +++++-
imgcreate/creator.py | 3 ++-
imgcreate/kickstart.py | 3 ++-
imgcreate/yuminst.py | 2 +-
tools/livecd-iso-to-disk.sh | 17 ++++++++++++++++-
6 files changed, 27 insertions(+), 6 deletions(-)
---
10 years, 4 months
Makefile
by Brian C. Lane
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 861f4f7c1e412916fb97fc8faae652ee37a979ea
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:22:49 2013 -0700
Version 19.6
diff --git a/Makefile b/Makefile
index 215a69a..2a88747 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 19.5
+VERSION = 19.6
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
10 years, 4 months
docs/livecd-iso-to-disk.pod tools/livecd-iso-to-disk.sh
by Brian C. Lane
docs/livecd-iso-to-disk.pod | 6 +++++-
tools/livecd-iso-to-disk.sh | 17 ++++++++++++++++-
2 files changed, 21 insertions(+), 2 deletions(-)
New commits:
commit e478654e51f91224e19ab0ccae3d849cc95380e4
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Jul 15 11:15:11 2013 -0700
litd: Add kickstart option
Add --ks kickstart option to copy a kickstart to the USB and setup
inst.ks to point to it. This can be used with a netboot or dvd iso to
make a USB stick that will start an install on boot.
Note that with the F19 release the install USB is not filtered out of
the drive list so clearpart --drives=sda needs to be used in the ks.
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 8f9ed61..bf52822 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable Live images onto USB/SD storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] <source> <target device>
+B<livecd-iso-to-disk> [--help] [--noverify] [--format] [--reset-mbr] [--efi] [--skipcopy] [--force] [--xo] [--xo-no-home] [--timeout <time>] [--totaltimeout <time>] [--extra-kernel-args <args>] [--multi] [--livedir <dir>] [--compress] [--skipcompress] [--swap-size-mb <size>] [--overlay-size-mb <size>] [--home-size-mb <size>] [--delete-home] [--crypted-home] [--unencrypted-home] [--updates updates.img] [--ks kickstart] <source> <target device>
Simplest
@@ -139,6 +139,10 @@ Prevents the default option to encrypt a new persistent home directory.
Setup inst.updates to point to an updates image on the device. Anaconda uses this for testing updates to an iso without needing to make a new iso.
+=item --ks kickstart
+
+Setup inst.ks to point to an kickstart file on the device. Use this for automating installs on boot.
+
=back
=head1 CONTRIBUTORS
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index c4fb4db..b0b5153 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,7 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
- [--updates updates.img]
+ [--updates updates.img] [--ks kickstart]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -249,6 +249,10 @@ usage() {
Setup inst.updates to point to an updates image on the device. Anaconda
uses this for testing updates to an iso without needing to make a new iso.
+ --ks kickstart
+ Setup inst.ks to point to an kickstart file on the device. Use this for
+ automating installs on boot.
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -708,6 +712,7 @@ packages=
LIVEOS=LiveOS
HOMEFILE="home.img"
updates=
+ks=
if [[ "$*" =~ "--help" ]]; then
usage
@@ -800,6 +805,10 @@ while [ $# -gt 2 ]; do
updates=$2
shift
;;
+ --ks)
+ ks=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1202,6 +1211,12 @@ if [ -n "$updates" ]; then
kernelargs+=" inst.updates=hd:$TGTLABEL:/updates.img"
fi
+# Setup the kickstart
+if [ -n "$ks" ]; then
+ copyFile "$ks" "$TGTMNT/ks.cfg"
+ kernelargs+=" inst.ks=hd:$TGTLABEL:/ks.cfg"
+fi
+
echo "Updating boot config file"
# adjust label and fstype
sed -i -e "s/CDLABEL=[^ ]*/$TGTLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$TGTFS/" -e "s/LABEL=[^ ]*/$TGTLABEL/" $BOOTCONFIG $BOOTCONFIG_EFI
10 years, 4 months