[opensuse-factory] Help with dir setup in /media
With 12.1 /media is now mounted as tmpfs. As I used to have a number of directories in /media (used as mount points for ISO images), I created the following script in /etc/tmpdirs.d to get the directories I want in /media -> cat /etc/tmpdirs.d/02_media mediaDirs=( os11332 os11364 os11432 os11464 os12132 os12164 sle10sp432sdk \ sle10sp464sdk sle11sp132sdk sle11sp164sdk sled1032 sled1064 \ sled10sp432 sled10sp464 sled11sp132 sled11sp164 sles1032 \ sles1064 sles10sp432 sles10sp464 sles11sp132 sles11sp164) for medDir in ${mediaDirs[@]};do test -d /media/$medDir || mkdir /media/$medDir done However, upon reboot the /media directory is empty, what am I missing? I am aware of the discussion of dropping /etc/tmpdirs.d (http://lists.opensuse.org/opensuse-packaging/2011-11/msg00057.html). However, the manpage for tmpdirs.d states /etc/tmpdirs.d supersedes /usr/lib/tmpfiles.d, also I think my custom files should go into /etc and not /usr/lib. Anyway, what is the best, and somewhat future proof, approach to this? As a side note, with the mounting of /media as tmpfs "umount /media" followed by the TAB key no longer auto-completes to any mounted filesystems/devices/loops etc :( . Is there a way to get the old behavior back? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 31.12.2011 13:35, schrieb Robert Schweikert:
With 12.1 /media is now mounted as tmpfs. As I used to have a number of directories in /media (used as mount points for ISO images), I created the following script in /etc/tmpdirs.d to get the directories I want in /media
-> cat /etc/tmpdirs.d/02_media mediaDirs=( os11332 os11364 os11432 os11464 os12132 os12164 sle10sp432sdk \ sle10sp464sdk sle11sp132sdk sle11sp164sdk sled1032 sled1064 \ sled10sp432 sled10sp464 sled11sp132 sled11sp164 sles1032 \ sles1064 sles10sp432 sles10sp464 sles11sp132 sles11sp164)
for medDir in ${mediaDirs[@]};do test -d /media/$medDir || mkdir /media/$medDir done
However, upon reboot the /media directory is empty, what am I missing?
I seem to remeber that with systemd, now /etc/tmpfiles.d is used. If it's future-proof I cannot tell ;-) -- Stefan Seyfried "Dispatch war rocket Ajax to bring back his body!" -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/31/2011 07:56 AM, Stefan Seyfried wrote:
Am 31.12.2011 13:35, schrieb Robert Schweikert:
With 12.1 /media is now mounted as tmpfs. As I used to have a number of directories in /media (used as mount points for ISO images), I created the following script in /etc/tmpdirs.d to get the directories I want in /media
-> cat /etc/tmpdirs.d/02_media mediaDirs=( os11332 os11364 os11432 os11464 os12132 os12164 sle10sp432sdk \ sle10sp464sdk sle11sp132sdk sle11sp164sdk sled1032 sled1064 \ sled10sp432 sled10sp464 sled11sp132 sled11sp164 sles1032 \ sles1064 sles10sp432 sles10sp464 sles11sp132 sles11sp164)
for medDir in ${mediaDirs[@]};do test -d /media/$medDir || mkdir /media/$medDir done
However, upon reboot the /media directory is empty, what am I missing?
I seem to remeber that with systemd, now /etc/tmpfiles.d is used.
Thanks, obviously a reading problem on my part, the man page does indeed state /etc/tmpfiles.d and not /etc/tmpdirs.d as claimed in my original post, duh Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Robert Schweikert
-
Stefan Seyfried