diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-11-22 17:29:37 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-11-22 17:29:37 +0000 |
commit | cb561eb11cc765d2314c30bb861c9187315d9efc (patch) | |
tree | 5324ef1a75f311d574eeac300241da250d7404d2 /packages/initrdscripts/files | |
parent | 3d700e6647bedae4e5a2dd71efa030422b4a8913 (diff) |
initramfs-module-loopboot: Allow to use absolute path for loop file location.
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r-- | packages/initrdscripts/files/80-loopboot.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/initrdscripts/files/80-loopboot.sh b/packages/initrdscripts/files/80-loopboot.sh index 7fbf69a202..d84244428e 100644 --- a/packages/initrdscripts/files/80-loopboot.sh +++ b/packages/initrdscripts/files/80-loopboot.sh @@ -21,11 +21,10 @@ if [ "$ROOT_DEVICE" = "/dev/loop" ]; then echo "Mounting $dev on $hostpt" mkdir $hostpt mount $dev $hostpt - cd $hostpt fi echo "Loopback setup of $path (offset $offset)" - losetup -o "$offset" "$loopdev" "$path" + losetup -o "$offset" "$loopdev" "$hostpt/$path" echo "Mounting $loopdev on $mountpt" mkdir "$mountpt" |