[Fai-commit] [faiproject/fai] 21a610: mkramdisk: make sure to resolve path of ramdisk

noreply at github.com noreply at github.com
Sat Nov 26 11:36:21 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/faiproject/fai

  Commit: 21a6106fca9e345ef450e1318fa06de036fc9410
      https://github.com/faiproject/fai/commit/21a6106fca9e345ef450e1318fa06de036fc9410
  Author: Michael Prokop <mika at grml.org>
  Date:   2011-11-26 (Sat, 26 Nov 2011)

  Changed paths:
    M lib/mkramdisk

  Log Message:
  -----------
  mkramdisk: make sure to resolve path of ramdisk

If we're building the ramdisk e.g. on /dev/shm/foobar
then the real mountpath is /run/shm/foobar and mkramdisk
doesn't unmount the ramdisk. So make sure we're resolving
the real path of the ramdisk.

Signed-off-by: Michael Prokop <mika at grml.org>


  Commit: f430196624e9c768e6b3770481902a7a65c721ce
      https://github.com/faiproject/fai/commit/f430196624e9c768e6b3770481902a7a65c721ce
  Author: Michael Prokop <mika at grml.org>
  Date:   2011-11-26 (Sat, 26 Nov 2011)

  Changed paths:
    M lib/mkramdisk

  Log Message:
  -----------
  mkramdisk: use local variable instead of relying on outer variable

Do not use "$d" set from an outer shell loop, instead use the
"$disk" variable available within umount_ramdisk() and mark
$disk and $ram as local variables.

Signed-off-by: Michael Prokop <mika at grml.org>


Compare: https://github.com/faiproject/fai/compare/c9d5c8d...f430196



More information about the Fai-commit mailing list