WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: rc.shutdown uses nonexistant umount option  (Read 1521 times)

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
rc.shutdown uses nonexistant umount option
« on: May 15, 2014, 11:19:48 AM »
The rc.shutdown script in TC4.1 uses umount with the  -d  option which means   "Free loop device if it has been used"
In TC4.7.7 it still uses that option but it no longer exists in umount. It has been replaced with with  -D  whos listed meaning is
"Don't free loop device even if it has been used"  which appears to mean the opposite, so I guess the old  -d  is now the default behavior.
It still appears to accept  -d  even though it is no longer listed as an option. Just thought I'd mention it in case that got carried over into TC5
and you wish to change it.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: rc.shutdown uses nonexistant umount option
« Reply #1 on: May 15, 2014, 01:31:34 PM »
Yes, it's still used. I don't think it needs to be changed in the script, as it's accepted by bb umount, but thanks for reporting.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: rc.shutdown uses nonexistant umount option
« Reply #2 on: May 15, 2014, 05:49:35 PM »
It has been replaced with with  -D  whos listed meaning is
"Don't free loop device even if it has been used"  which appears to mean the opposite, so I guess the old  -d  is now the default behavior.


http://git.busybox.net/busybox/commit/?id=86a03bee1d3d6990c03bf500836b19ec8a1c1f12
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)