Fix build and first runtime problem in network boot

The boot still crashes some time later, but at least it is easier to
test now.

- PackageFS included in the net boot archive
- Tell the system it is booted "from image" when netbooting
This commit is contained in:
Adrien Destugues
2016-08-06 20:29:08 +02:00
parent d4cfae74c9
commit 766f682338
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -23,7 +23,7 @@ SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
pci isa@x86 ide@ide ata@ata pci isa@x86 ide@ide ata@ata
scsi config_manager agp_gart scsi config_manager agp_gart
] ; ] ;
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs fat iso9660 ; SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs packagefs ;
# modules # modules
@@ -71,7 +71,7 @@ AddFilesToNetBootArchive home config settings kernel drivers
# add-ons # add-ons
AddFilesToNetBootArchive system add-ons kernel network AddFilesToNetBootArchive system add-ons kernel network
: <net>notifications stack ; : stack ;
AddFilesToNetBootArchive system add-ons kernel network devices AddFilesToNetBootArchive system add-ons kernel network devices
: $(SYSTEM_NETWORK_DEVICES) ; : $(SYSTEM_NETWORK_DEVICES) ;
AddFilesToNetBootArchive AddFilesToNetBootArchive
@@ -93,7 +93,6 @@ AddBootModuleSymlinksToNetBootArchive
openpic@ppc openpic@ppc
generic_x86@x86 generic_x86@x86
# nbd # nbd
<net>notifications
remote_disk remote_disk
$(SYSTEM_ADD_ONS_DRIVERS_NET) $(SYSTEM_ADD_ONS_DRIVERS_NET)
stack stack
@@ -75,7 +75,8 @@ platform_add_boot_device(struct stage2_args *args, NodeList *devicesList)
platform_free_region(data, size); platform_free_region(data, size);
return B_NO_MEMORY; return B_NO_MEMORY;
} }
gBootVolume.SetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, true);
devicesList->Add(disk); devicesList->Add(disk);
return B_OK; return B_OK;
} else { } else {