10
10
11
11
# GPL2 License
12
12
13
- VERSION=" 1.0.2 "
13
+ VERSION=" 1.0.3 "
14
14
15
15
echo "
16
16
################################################
@@ -75,6 +75,15 @@ echo "Installing the essential tools"
75
75
apt-get -q=2 update
76
76
apt-get -q=2 install grub2 xorriso squashfs-tools
77
77
78
+ echo " Installing Ubiquity"
79
+ apt-get -q=2 install casper lupin-casper
80
+ echo " GTK is: $GTK "
81
+ if [ " $GTK " == " YES" ]; then
82
+ apt-get -q=2 install ubiquity-frontend-gtk
83
+ else
84
+ apt-get -q=2 install ubiquity-frontend-qt
85
+ fi
86
+
78
87
# Copy the filesystem
79
88
echo " Copying the current system to the new directories"
80
89
rsync -a --one-file-system --exclude=/proc/* --exclude=/dev/* \
@@ -137,15 +146,6 @@ cat > "${WORK}"/rootfs/distroshare_imager.sh <<EOF
137
146
umask 022
138
147
139
148
#Modify copied distro
140
- echo "Installing Ubiquity"
141
- apt-get -q=2 install casper lupin-casper
142
- echo "GTK is: $GTK "
143
- if [ "$GTK " == "YES" ]; then
144
- apt-get -q=2 install ubiquity-frontend-gtk
145
- else
146
- apt-get -q=2 install ubiquity-frontend-qt
147
- fi
148
-
149
149
if [ -n "$UBIQUITY_KERNEL_PARAMS " ]; then
150
150
echo "Replacing ubiquity default extra kernel params with: $UBIQUITY_KERNEL_PARAMS "
151
151
sed -i "s/defopt_params=\"\"/defopt_params=\"${UBIQUITY_KERNEL_PARAMS} \"/" \
@@ -157,9 +157,6 @@ echo "Updating initramfs"
157
157
depmod -a $( uname -r)
158
158
update-initramfs -u -k all > /dev/null 2>&1
159
159
160
- echo "Creating filesystem.manifest"
161
- dpkg-query -W --showformat='${Package} ${Version} \n' > /filesystem.manifest
162
-
163
160
#Clean up downloaded packages
164
161
echo "Cleaning up files that are not needed in the new image"
165
162
apt-get clean
@@ -231,16 +228,19 @@ cp -p "${WORK}"/rootfs/boot/vmlinuz-${kversion} "${CASPER}"/vmlinuz
231
228
cp -p " ${WORK} " /rootfs/boot/initrd.img-${kversion} " ${CASPER} " /initrd.img
232
229
cp -p " ${WORK} " /rootfs/boot/memtest86+.bin " ${CD} " /boot
233
230
234
- echo " Copying filesystem.manifest"
235
- cp " ${WORK} " /rootfs/filesystem.manifest " ${CASPER} " /
231
+ echo " Creating filesystem.manifest"
232
+ dpkg-query -W --showformat= ' ${Package} ${Version}\n ' > " ${CASPER} " /filesystem.manifest
236
233
237
234
cp " ${CASPER} " /filesystem.manifest{,-desktop}
238
- REMOVE=' ubiquity casper user-setup os-prober libdebian-installer4'
235
+ REMOVE=' ubiquity ubiquity-frontend-gtk ubiquity-frontend-kde casper user-setup os-prober libdebian-installer4'
239
236
for i in $REMOVE
240
237
do
241
238
sed -i " /${i} /d" " ${CASPER} " /filesystem.manifest-desktop
242
239
done
243
240
241
+ echo " Uninstalling Ubiquity"
242
+ apt-get -q=2 remove casper lupin-casper ubiquity
243
+
244
244
echo " Removing temp files"
245
245
rm -rf " ${WORK} " /rootfs/tmp/*
246
246
rm -rf " ${WORK} " /rootfs/run/*
0 commit comments