diff options
| author | Daniel Baumann <daniel@debian.org> | 2008-07-14 09:49:10 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:00 +0100 |
| commit | 8225101cbf7a069f0d4ff6d5fda4677051d8821a (patch) | |
| tree | 60f48b92739b4b5d0a3ba29364466426bfe2633e | |
| parent | d093a29808026e9591542ba89a56db3ef30c90df (diff) | |
| download | live-boot-8225101cbf7a069f0d4ff6d5fda4677051d8821a.tar.gz live-boot-8225101cbf7a069f0d4ff6d5fda4677051d8821a.zip | |
Merging casper version 1.133.
| -rw-r--r-- | docs/ChangeLog.casper | 14 | ||||
| -rwxr-xr-x | scripts/live | 12 | ||||
| -rwxr-xr-x | scripts/live-bottom/13swap | 2 |
3 files changed, 22 insertions, 6 deletions
diff --git a/docs/ChangeLog.casper b/docs/ChangeLog.casper index 4e17e6c..3425af4 100644 --- a/docs/ChangeLog.casper +++ b/docs/ChangeLog.casper @@ -1,3 +1,17 @@ +casper (1.133) intrepid; urgency=low + + [ Tormod Volden ] + * Do not use swap on RAID raw devices (LP: #136804) + + [ Agostino Russo ] + * Test if livemedia is a directory before trying to mount it as a + loopfile + * Reverted changes to casper-helpers as requested by Mithrandir since + replaying the journal on a hibernated system would lead to file system + corruption. + + -- Evan Dandrea <evand@ubuntu.com> Wed, 18 Jun 2008 12:34:58 -0400 + casper (1.132) intrepid; urgency=low [ Colin Watson ] diff --git a/scripts/live b/scripts/live index b886f47..bf30b50 100755 --- a/scripts/live +++ b/scripts/live @@ -1192,12 +1192,6 @@ check_dev () devname=$(sys2dev "${sysdev}") fi - if [ -n "${LIVE_MEDIA_OFFSET}" ] - then - loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '') - devname="${loopdevname}" - fi - if [ -d "${devname}" ] then mount -o bind "${devname}" $mountpoint || continue @@ -1211,6 +1205,12 @@ check_dev () fi fi + if [ -n "${LIVE_MEDIA_OFFSET}" ] + then + loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '') + devname="${loopdevname}" + fi + fstype=$(get_fstype "${devname}") if is_supported_fs ${fstype} diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap index f3af1cc..303fbbb 100755 --- a/scripts/live-bottom/13swap +++ b/scripts/live-bottom/13swap @@ -41,6 +41,8 @@ do continue fi + /lib/udev/vol_id ${device%%[0-9]*} | grep -q "^ID_FS_USAGE=raid" && continue + magic=$(/bin/dd if="${device}" bs=4086 skip=1 count=1 2>/dev/null | /bin/dd bs=10 count=1 2>/dev/null) || continue if [ "${magic}" = "SWAPSPACE2" -o "${magic}" = "SWAP-SPACE" ] |
