diff --git a/Rakefile b/Rakefile index b2d8e538..8c4f7912 100644 --- a/Rakefile +++ b/Rakefile @@ -37,7 +37,7 @@ task :create_ramdisk_image do end desc 'Compiles and installs chaos' -task install: [:install_folders, :iso_image] +task install: [:create_ramdisk_image, :install_folders, :iso_image] task :install_folders do FileUtils.rm_rf INSTALL_ROOT diff --git a/programs/Rakefile b/programs/Rakefile index e9f1b507..12c6eb7f 100644 --- a/programs/Rakefile +++ b/programs/Rakefile @@ -18,8 +18,13 @@ task :clean do end task install: :default do - # Disabled for now, since the code that generates the folder structure isn't here yet. - # sh 'mcopy -o startup u:/config/servers/boot' + # The volume is always recreated on 'rake install', so the folder structure must be created from scratch. + sh 'mmd u:/config' + sh 'mmd u:/config/servers' + sh 'mmd u:/config/servers/boot' + sh 'mcopy -o startup u:/config/servers/boot' + + sh 'mmd u:/programs' SUBFOLDERS.each do |folder| sh "cd #{folder} && #{RAKE_COMMAND} install"