Browse code

ova_micro: shrink disk size to 152MB

Change-Id: I11c060068b8f9251572983ad7cf6c05ada6291ad
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1705
Reviewed-by: suezzelur <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

Alexey Makhalov authored on 2016/11/17 03:50:20
Showing 2 changed files
... ...
@@ -1,14 +1,11 @@
1 1
 {
2 2
     "packages":["filesystem",  
3
-                "pkg-config", 
4 3
                 "bash",
5 4
                 "bzip2", 
6 5
                 "shadow", 
7
-                "coreutils",
8 6
                 "net-tools",
9 7
                 "util-linux",
10 8
                 "linux-esx",
11
-                "systemd",
12 9
                 "dbus",
13 10
                 "photon-release", 
14 11
                 "photon-repos",
... ...
@@ -1,3 +1,16 @@
1 1
 #!/bin/bash
2
+
2 3
 echo -e "changeme\nchangeme" | passwd root
3
-chage -d 0 root
4
+
5
+# create empty cracklib dictionary and remove cracklib-dicts rpm
6
+echo a | cracklib-packer /root/pw_dict
7
+rpm -e cracklib-dicts --nodeps
8
+mv /root/pw_dict* /usr/share/cracklib/
9
+
10
+# removing this file is safe
11
+rm /boot/system.map*
12
+
13
+# TODO: remove it from grub rpm - not used
14
+rm -rf /boot/grub/fonts
15
+# TODO: clean up spec file
16
+rm -rf /usr/include