commit 9c545f3768325ba92e0e6f075089fe699a91f908
Author: dthaluru <dthaluru@vmware.com>
Date: Fri Jul 24 16:47:33 2015 -0700
Revert "Reduce the initrd size"
This reverts commit a88b06e7862179870b846ed1ac003d32fab86158.
Conflicts:
common/data/packages_iso.json
installer/installer.py
commit d2a26a36ec7d1dceb756f9cf6204a8688f14fee8
Author: dthaluru <dthaluru@vmware.com>
Date: Fri Jul 24 16:45:18 2015 -0700
Fixing grub install on ovf
| ... | ... |
@@ -1,17 +1,17 @@ |
| 1 | 1 |
{
|
| 2 | 2 |
"packages":["glibc", "zlib", "filesystem", |
| 3 |
- "libgcc", "libstdc++", |
|
| 4 |
- "sed", "pkg-config", "readline", "ncurses", "bash", |
|
| 5 |
- "cracklib", "cracklib-dicts", "cracklib-python", "shadow", |
|
| 6 |
- "coreutils", "grep", |
|
| 7 |
- "findutils", |
|
| 8 |
- "xz", "grub2", "kmod", |
|
| 3 |
+ "binutils", "gmp", "mpfr", "libgcc", "libstdc++", |
|
| 4 |
+ "sed", "bzip2", "pkg-config", "readline", "ncurses", "bash", |
|
| 5 |
+ "cracklib", "cracklib-dicts", "cracklib-python", "shadow", "procps-ng", |
|
| 6 |
+ "coreutils", "iana-etc", "grep", "bc", "libtool", |
|
| 7 |
+ "inetutils", "findutils", |
|
| 8 |
+ "xz", "grub2", "iproute2", "kmod", |
|
| 9 | 9 |
"util-linux", "e2fsprogs", |
| 10 |
- "expat", |
|
| 10 |
+ "libffi", "expat", |
|
| 11 | 11 |
"linux", "cpio", |
| 12 | 12 |
"Linux-PAM", "attr", "libcap", "systemd", "dbus", |
| 13 | 13 |
"elfutils-libelf", "sqlite-autoconf", "nspr", "nss", "popt", "lua", "rpm", |
| 14 |
- "gptfdisk", "gzip", "openssl", "python2", "python2-libs", "python-requests", |
|
| 14 |
+ "gptfdisk", "tar", "gzip", "openssl", "python2", "python2-libs", "python-requests", |
|
| 15 | 15 |
"pcre", |
| 16 | 16 |
"libgsystem", "ostree","device-mapper","device-mapper-libs","libsepol","libselinux", |
| 17 | 17 |
"db", "libsolv", "hawkey", "python-hawkey"] |
| ... | ... |
@@ -277,7 +277,7 @@ class Installer(object): |
| 277 | 277 |
retval = process.wait() |
| 278 | 278 |
else: |
| 279 | 279 |
#Build the initramfs |
| 280 |
- process = subprocess.Popen([self.chroot_command, '-w', self.photon_root, './mkinitramfs', '-n', 'boot/initrd.img-no-kmods'], stdout=self.output) |
|
| 280 |
+ process = subprocess.Popen([self.chroot_command, '-w', self.photon_root, './mkinitramfs', '-n', '/boot/initrd.img-no-kmods'], stdout=self.output) |
|
| 281 | 281 |
retval = process.wait() |
| 282 | 282 |
|
| 283 | 283 |
|
| ... | ... |
@@ -106,17 +106,9 @@ createrepo --database ${WORKINGDIR}/RPMS
|
| 106 | 106 |
|
| 107 | 107 |
rm -rf ${BUILDROOT}/LOGS
|
| 108 | 108 |
|
| 109 |
-# Cleaning up |
|
| 110 | 109 |
#Remove our rpm database as it fills up the ramdisk |
| 111 | 110 |
rm -rf ${BUILDROOT}/home/*
|
| 112 | 111 |
rm -rf ${BUILDROOT}/var/lib/rpm
|
| 113 |
- |
|
| 114 |
-# Remove the boot directory |
|
| 115 |
-rm -rf ${BUILDROOT}/boot
|
|
| 116 |
- |
|
| 117 |
-#Remove the include files. |
|
| 118 |
-rm -rf ${BUILDROOT}/usr/include
|
|
| 119 |
- |
|
| 120 | 112 |
# TODO: mbassiouny, Find a clean way to do that |
| 121 | 113 |
for i in `ls ${BUILDROOT}/usr/share/`; do
|
| 122 | 114 |
if [ $i != 'terminfo' -a $i != 'cracklib' -a $i != 'grub' ]; then |
| ... | ... |
@@ -35,7 +35,17 @@ fi |
| 35 | 35 |
# Install grub2. |
| 36 | 36 |
# |
| 37 | 37 |
UUID=$(blkid -s UUID -o value $PARTITION) |
| 38 |
-grub2-install --force --boot-directory=$BUILDROOT/boot "$HDD" |
|
| 38 |
+ |
|
| 39 |
+grubInstallCmd="" |
|
| 40 |
+ln -sfv grub2 $BUILDROOT/boot/grub |
|
| 41 |
+command -v grub-install >/dev/null 2>&1 && grubInstallCmd="grub-install" && { echo >&2 "Found grub-install"; }
|
|
| 42 |
+command -v grub2-install >/dev/null 2>&1 && grubInstallCmd="grub2-install" && { echo >&2 "Found grub2-install"; }
|
|
| 43 |
+if [ -z $grubInstallCmd ]; then |
|
| 44 |
+echo "Unable to found grub install command" |
|
| 45 |
+exit 1 |
|
| 46 |
+fi |
|
| 47 |
+ |
|
| 48 |
+$grubInstallCmd --force --boot-directory=$BUILDROOT/boot "$HDD" |
|
| 39 | 49 |
cp boot/unifont.pf2 ${BUILDROOT}/boot/grub2/
|
| 40 | 50 |
mkdir -p ${BUILDROOT}/boot/grub2/themes/photon
|
| 41 | 51 |
cp boot/splash.tga ${BUILDROOT}/boot/grub2/themes/photon/photon.tga
|