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:20:35 +02:00
parent d4cfae74c9
commit 766f682338
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
pci isa@x86 ide@ide ata@ata
scsi config_manager agp_gart
] ;
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs fat iso9660 ;
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs packagefs ;
# modules
@ -71,7 +71,7 @@ AddFilesToNetBootArchive home config settings kernel drivers
# add-ons
AddFilesToNetBootArchive system add-ons kernel network
: <net>notifications stack ;
: stack ;
AddFilesToNetBootArchive system add-ons kernel network devices
: $(SYSTEM_NETWORK_DEVICES) ;
AddFilesToNetBootArchive
@ -93,7 +93,6 @@ AddBootModuleSymlinksToNetBootArchive
openpic@ppc
generic_x86@x86
# nbd
<net>notifications
remote_disk
$(SYSTEM_ADD_ONS_DRIVERS_NET)
stack

View File

@ -75,7 +75,8 @@ platform_add_boot_device(struct stage2_args *args, NodeList *devicesList)
platform_free_region(data, size);
return B_NO_MEMORY;
}
gBootVolume.SetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, true);
devicesList->Add(disk);
return B_OK;
} else {