diff options
-rw-r--r-- | boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm | 1 | ||||
-rwxr-xr-x | initramfs/stage3-stuff/bin/hwautocfg | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm index 0f1ad35d..ec80f6a6 100644 --- a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm +++ b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm @@ -307,6 +307,7 @@ sub _writeInitramfsSetup 'ramfs_miscmods' => $self->{attrs}->{ramfs_miscmods} || '', 'ramfs_nicmods' => $self->{attrs}->{ramfs_nicmods} || '', 'rootfs' => $self->{'export-uri'} || '', + 'hw_local_disk' => $self->{attrs}->{hw_local_disk} || '', }; my $content = "# attributes set by slxconfig-demuxer:\n"; foreach my $attr (keys %$initramfsAttrs) { diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index 550afaa7..df1552d5 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -206,8 +206,9 @@ return 0 # load distro specific configuration variables and functions. distro # specific functions may overwrite functions defined in /etc/functions . /etc/distro-functions -# source general slx settings +# source general slx and initramfs-setup settings . /etc/slxsystem.conf +. /etc/initramfs-setup # script run timer [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 21 ] && \ @@ -235,7 +236,12 @@ case $1 in # if required and mounting) disk) # if disk action is not disabled (see #470) - [ "x${hw_local_disk}" != "xno" ] && disk + if [ "x${hw_local_disk}" != "xno" ] ; then + disk + else + echo "using harddisk switched off by hw_local_disk set to 'no' ( $(sysup) )" \ + >/tmp/tmpready + fi ;; # remove unneeded kernel modules finish) |