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>
| ... | ... |
@@ -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 |