Пересборка LiveCD Ubuntu: различия между версиями

Материал из wiki.nntc.nnov.ru
Перейти к навигации Перейти к поиску
Строка 13: Строка 13:
 
  nano ubuntu-source/etc/apt/sources.list
 
  nano ubuntu-source/etc/apt/sources.list
  
  chroot ubuntu-source dpkg-query -W --showformat='${Package} ${Version}\n' | grep -v deinstall > ubuntu-rebuild/casper/filesystem.manifest
+
  chroot ubuntu-source dpkg-query  
  
  cat > /tmp/sedscript << END
+
  aptitude purge language-pack-ar language-pack-bn  language-pack-de language-pack-es language-pack-fr language-pack-hi language-pack-pt language-pack-xh  language-pack-ar-base language-pack-bn-base language-pack-de-base language-pack-es-base language-pack-fr-base language-pack-hi-base language-pack-pt-base language-pack-xh-base language-pack-gnome-ar language-pack-gnome-bn language-pack-gnome-de language-pack-gnome-es language-pack-gnome-fr language-pack-gnome-hi language-pack-gnome-pt language-pack-gnome-xh language-pack-gnome-ar-base language-pack-gnome-bn-base language-pack-gnome-de-base language-pack-gnome-es-base language-pack-gnome-fr-base language-pack-gnome-hi-base language-pack-gnome-pt-base language-pack-gnome-xh-base
 
 
  nano /tmp/sedscript
 
 
 
  sed -f /tmp/sedscript < ubuntu-rebuild/casper/filesystem.manifest > ubuntu-rebuild/casper/filesystem.manifest.desktop
 
  
 
  mksquashfs ubuntu-source/ ubuntu-rebuild/casper/filesystem.squashfs -noappend
 
  mksquashfs ubuntu-source/ ubuntu-rebuild/casper/filesystem.squashfs -noappend

Версия 16:00, 13 мая 2009

mount -o loop feisty.iso loop/

rsync -ax loop/. ubuntu-rebuild/
umount loop
mount ubuntu-rebuild/casper/filesystem.squashfs loop -t squashfs -o loop

rsync -av loop/. ubuntu-source
umount loop
nano ubuntu-source/etc/apt/sources.list
chroot ubuntu-source dpkg-query 
aptitude purge language-pack-ar language-pack-bn  language-pack-de language-pack-es language-pack-fr language-pack-hi language-pack-pt language-pack-xh  language-pack-ar-base language-pack-bn-base language-pack-de-base language-pack-es-base language-pack-fr-base language-pack-hi-base language-pack-pt-base language-pack-xh-base  language-pack-gnome-ar language-pack-gnome-bn  language-pack-gnome-de language-pack-gnome-es language-pack-gnome-fr language-pack-gnome-hi language-pack-gnome-pt language-pack-gnome-xh language-pack-gnome-ar-base language-pack-gnome-bn-base language-pack-gnome-de-base language-pack-gnome-es-base language-pack-gnome-fr-base language-pack-gnome-hi-base language-pack-gnome-pt-base language-pack-gnome-xh-base
mksquashfs ubuntu-source/ ubuntu-rebuild/casper/filesystem.squashfs -noappend
(cd ubuntu-rebuild && find . -type f -print0 | xargs -0 md5sum > md5sum.txt)
mkisofs -r -V "Ubuntu-7.10-NTC-Edition-0.02" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat  -no-emul-boot -boot-load-size 4 -boot-info-table -o /home/ftp/iso/newubuntu.iso ubuntu-rebuild