diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 22:45:21 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 22:45:21 +0000 |
commit | d4058e8b2d1861a38a20f983c1cfa3e28180880c (patch) | |
tree | a11f5975de6372aad443098e9ef096ef744c08f2 /protostar | |
parent | 2f1791f3ccd5fc43bfa0418d2047425a20676dca (diff) | |
download | live-d4058e8b2d1861a38a20f983c1cfa3e28180880c.tar.gz |
Cleanup
Diffstat (limited to 'protostar')
-rwxr-xr-x | protostar | 40 |
1 files changed, 15 insertions, 25 deletions
@@ -164,29 +164,19 @@ find "${BOOTARCH}" > bootarch.list echo "Making boot archive..." sync; sync -if false; then -genisoimage \ - -o "${ROOT}/boot/boot_archive" \ - -N -l -R -U \ - -allow-multidot \ - -quiet -no-iso-translate -cache-inodes -d -D \ - -V "root" \ - "${BOOTARCH}" -else - size=$(du -s -m "${BOOTARCH}" | cut -f1) - ((size+=10)) # +10 MB of free space - dd if=/dev/zero of="${ROOT}/boot/boot_archive" bs=1M count="$size" - lofidev=$(lofiadm -a "${ROOT}/boot/boot_archive") - rlofidev="${lofidev/lofi/rlofi}" - yes | newfs -m 0 "${rlofidev}" - mkdir -p "${ROOT}/boot/boot_archive.mount" - mount "${lofidev}" "${ROOT}/boot/boot_archive.mount" - mv "${BOOTARCH}"/* "${ROOT}/boot/boot_archive.mount"/ - umount "${ROOT}/boot/boot_archive.mount" - lofiadm -d "${lofidev}" - rmdir "${BOOTARCH}" - rmdir "${ROOT}/boot/boot_archive.mount" -fi +size=$(du -s -m "${BOOTARCH}" | cut -f1) +((size+=10)) # +10 MB of free space +dd if=/dev/zero of="${ROOT}/boot/boot_archive" bs=1M count="$size" +lofidev=$(lofiadm -a "${ROOT}/boot/boot_archive") +rlofidev="${lofidev/lofi/rlofi}" +yes | newfs -m 0 "${rlofidev}" +mkdir -p "${ROOT}/boot/boot_archive.mount" +mount "${lofidev}" "${ROOT}/boot/boot_archive.mount" +mv "${BOOTARCH}"/* "${ROOT}/boot/boot_archive.mount"/ +umount "${ROOT}/boot/boot_archive.mount" +lofiadm -d "${lofidev}" +rmdir "${BOOTARCH}" +rmdir "${ROOT}/boot/boot_archive.mount" gzip -9 -f "${ROOT}/boot/boot_archive" @@ -212,8 +202,8 @@ splashimage=/boot/grub/splash.xpm.gz foreground=ffffff background=215ECA title Dyson ($DIST), $DATE - kernel$ /platform/i86pc/kernel/amd64/unix -k -m verbose - module$ /boot/boot_archive.gz + kernel /platform/i86pc/kernel/amd64/unix -k -m verbose + module /boot/boot_archive.gz GRUB |